Problem/missing feature with uicontrols

Stéphane Mottelet stephane.mottelet at utc.fr
Wed Jun 16 17:07:49 CEST 2010


Hi all,

There is a missing (easy to implement) feature in uicontrols.
When you create e.g. a button as a children of a frame, when
making the frame invisible, the button should also dissapear,
regardless of its 'visible'  property. Actually, this is not the case
(at least in Scilab 5.2.1). This is very annoying, since in Tk
the visible state is inherited by childrens. Try the following
piece of code :

f=uicontrol('style','frame','position',[0 0 100 200]);
b=uicontrol(f,'style','pushbutton','position',[0 0 100 
20],'string','push me');
set(f,'visible','off');

S.





More information about the dev mailing list