| MATLAB Central > MATLAB Newsreader > Slider, ButtonDownFcn |
|
|
|
I am programming a GUI. In this GUI, in need a slider to change a value. In the sliders callback, I'm showing the selected value in a edit text field. |
|
Stephan wrote: |
|
Hi Walter |
|
Stephan wrote: |
|
Tnx Walter for your help. Now my question is answered, I don't want to change the behaviour of the slider on the java level. And as you said, there is no chance to change it on matlab level. |
|
Stephan wrote: |
|
"Stephan " <schmutz@pyl.unibe.ch> wrote in message <gebsa5$8ns$1@fred.mathworks.com>... |
|
"Stephan " <schmutz@pyl.unibe.ch> wrote in message <gep0fr$kuk$1@fred.mathworks.com>... |
|
> By the way, I think the behaviour of the sliders buttonDownFcn is pretty strange. |
|
Stephan wrote: |
|
I said that the behaviour is different now. You said that there is a problem to call two callbacks at the same click, at the same moment (You said: "I suspect, from you wording, that you want ButtonDownFcn to execute when the user clicks while the user is pointed to the control, as -well- as the Callback executing. (Mathworks would have to decide which of the two callbacks was done first, but that's not a show stopper.) You should, however, take it as a general rule that when you click on something, only *one* callback will be executed".) But that's not a problem in my case. Because it's not the same moment: One callback is called with the Button Down Action, the other one (the normal callback) with the button up. So there is no problem as you described it, where you have to call two callbacks at the same moment. |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| gui | Stiphu | 30 Oct, 2008 04:50:20 |
| slider | Stiphu | 30 Oct, 2008 04:50:20 |
| button down fun... | Stiphu | 30 Oct, 2008 04:50:20 |
| buttondownfcn | Stiphu | 30 Oct, 2008 04:50:20 |
Contact us at files@mathworks.com
