Le Jeudi 11 Février 2016 10:00 CET, Jan-Åge Langeland <j-...@online.no> a 
écrit: 
 
> 
> >> The only added bonus with the uicontrol is that you have access to a 
> >> callback function to react to the user's action.
> > Not even: as for the text style (http://bugzilla.scilab.org/7111), the 
> > callback is not implemented for the image style. After your example, add:
> > h.callback_type=0;
> > h.callback = "disp(""Hello"")"
> > // Then click on the image => "Hello" should be displayed in the 
> > console for each click, but nothing is displayed.
> > // You may change the instructions => nothing is never done.
> >
> > Samuel
> 
> What would a callback bring anyway, that you cannot do with xclick() ?

Well, callbacks are the "official" way of interacting with the user.
It would allow you to create an intereface in a consistant way, using only 
callbacks.

Antoine


> 
> Jan Å
> _______________________________________________
> users mailing list
> users@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
> 
 
 
 
 


_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to