From: Walter Roberson on 21 Mar 2010 15:07 Rob Ing wrote: > Walter Roberson <roberson(a)hushmail.com> wrote in message > <ho5ofn$mpv$1(a)canopus.cc.umanitoba.ca>... >> Rob Ing wrote: >> > I have a a edit text box on a GUI and i dont know what ive done but >> its > magically gained up and down buttons. >> Did you set the 'Maximum' parameter to something larger than 1 ? > Indeed that is what i have done. I have set the max value to 250 and min > value to 10. > I already have a slide bar that does that the job of moving through the > values. I prefer the look of the slide bar to the scroll-bar that it has > put on the side. Is there anyway i can over ride this? > I have set the max and min values, so it can move my slide bar to the > appropriate place. So the user can input the value either by the slider > or by the edit box. The Minimum and Maximum parameters associated with the edit box have nothing to do with the value that appear in the edit box. Remember, an edit box is *text* and knows nothing about how that text will be interpreted. The Minimum and Maximum parameters associated with the edit box have to do with the *number of lines* of text that will be accepted, and really it is "only one line" or "an indefinite number of lines". So to solve your problem, just don't set the Minimum and Maximum parameters of the edit box.
From: Rob Ing on 21 Mar 2010 15:10 "Rob Ing" <ringham3(a)hotmail.com> wrote in message <ho5pdj$pia$1(a)fred.mathworks.com>... > Walter Roberson <roberson(a)hushmail.com> wrote in message <ho5ofn$mpv$1(a)canopus.cc.umanitoba.ca>... > > Rob Ing wrote: > > > > > I have a a edit text box on a GUI and i dont know what ive done but its > > > magically gained up and down buttons. The up and down buttons look like > > > they are suppose to change the value in my edit text box. > > > > > I dont want these buttons at all. Would anyone know how i could get rid > > > of them please? > > > > Did you set the 'Maximum' parameter to something larger than 1 ? If so, > > then what you are setting is probably a scroll-bar. When Maximum minus > > Minimum is > 1 then the edit box accepts an indefinite number of input > > lines, and so potentially needs a scroll-bar to allow the user to move > > back and forth through the input. > > Indeed that is what i have done. I have set the max value to 250 and min value to 10. > I already have a slide bar that does that the job of moving through the values. I prefer the look of the slide bar to the scroll-bar that it has put on the side. Is there anyway i can over ride this? > I have set the max and min values, so it can move my slide bar to the appropriate place. So the user can input the value either by the slider or by the edit box. Problem fixed. I misunderstood the error message that matlab threw at me. It was only asking for the max and min values of the slider and not the edit box.
From: Rob Ing on 21 Mar 2010 15:20 Walter Roberson <roberson(a)hushmail.com> wrote in message <ho5qov$q6q$1(a)canopus.cc.umanitoba.ca>... > Rob Ing wrote: > > Walter Roberson <roberson(a)hushmail.com> wrote in message > > <ho5ofn$mpv$1(a)canopus.cc.umanitoba.ca>... > >> Rob Ing wrote: > > >> > I have a a edit text box on a GUI and i dont know what ive done but > >> its > magically gained up and down buttons. > > >> Did you set the 'Maximum' parameter to something larger than 1 ? > > > Indeed that is what i have done. I have set the max value to 250 and min > > value to 10. > > I already have a slide bar that does that the job of moving through the > > values. I prefer the look of the slide bar to the scroll-bar that it has > > put on the side. Is there anyway i can over ride this? > > I have set the max and min values, so it can move my slide bar to the > > appropriate place. So the user can input the value either by the slider > > or by the edit box. > > The Minimum and Maximum parameters associated with the edit box have > nothing to do with the value that appear in the edit box. Remember, an > edit box is *text* and knows nothing about how that text will be > interpreted. The Minimum and Maximum parameters associated with the edit > box have to do with the *number of lines* of text that will be accepted, > and really it is "only one line" or "an indefinite number of lines". > > So to solve your problem, just don't set the Minimum and Maximum > parameters of the edit box. Cheers for the solution. I ended up solving the problem by myself and i posted my last post before seeing your last post
First
|
Prev
|
Pages: 1 2 Prev: DSP 3D operations on Multi dimensional arrays Next: make quiver into array? |