-----Original Message-----
From: stef.pillaert
To: '[EMAIL PROTECTED] '
Sent: 28/03/01 11:50
Subject: RE: [vtcl-user] aliases and copied toplevels: is my style bad?
<Yes, the only way to refer to aliases existing in several toplevels is
<to use 'TopLevel1.Somealias' (this is new in 1.5)
OK (It was indeed code I wrote in 1.2.2)
<If you only use 'Somealias' it will point to the widget in the last
<toplevel
<where this alias was defined.
<If you only use one toplevel though, it is fine to use 'Somealias'. Or,
<after you copy the widget into another toplevel, you could change its
<alias.
Yes, but when copying toplevels, you also copy all the subwidgets (so
that you have a lot of double aliases now). When I don't use aliases at
all (not desired!), copying a toplevel also does some translation of the
widget names (which is great!): ".top1...." gets changed to ".top2....",
so that a lot of commands of the subwidgets still work in the copied
window (also the coupling of scrollbars to its widget gets correctly
preserved this way, great too!). But when using aliases, this feature
disappears. So maybe this is just a feature request for further
versions: Can also the aliases get translated when copying
widgets/toplevels? (Of course, when the alias-style "Toplevel1.Button2"
is used troughout, and not the "old" style is was using...)
Thanks,
Stef.
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/vtcl-user