Hi anybody,

I wonder if vtcl cannot deal with unmanaged widgets correctly? What means that:
suppose I have a surface with a checkbox (called .top1.cb1) and two buttons
(.top1.b1 and .top.b2 for example). I use the packer throughout the whole 
example. 

Now I want to hide (pack forget) both buttons. If for example the .top1.cb1 is
checked, then the button .tp.b1 should appear. If it is not checked, the button
.top.b2 should appear, and the other one should vanish, etc.

So I have created one checkbox and two buttons, set the command of the
checkbox to the right pack command (check, only ...b1 visible; not check, only
...b2 visible). Then I have 'hide' the two buttons (they vanis from the
toplevel, but are visible via widget tree). Afterwards I have test the app and
all works fine.

Well, I have thought. let me save this app, and try it standalone.
Thought ... done! But as I have started it ... hoops, it complains that there
are no buttons .top1.b1 and .top.b2 are defined.

Have a quick look into the source ... right, there is no definition of these
two buttons.

Further investigations have shown, that if a widget is not managed by any
geometry manager (means hidden), no widget definition will be written into the
file, and so after reread the app into vtcl, it has forgot all about my 
unmanaged widgets.

Is that behavior intended?

Have anyone a nice patch to overcome this problem?

Bye,
Cle.

-- 
| Clemens Hintze * ACB/EO   ____   OMC-R Software Developement
| Phone: +49 30 7002-3241   \  /   ALCATEL Mobile Communication Division ITD
| Fax  : +49 30 7002-3851    \/    Colditzstr. 34-36, D-12099 Berlin, Germany
|            mailto:[EMAIL PROTECTED]

Reply via email to