On Fri, 14 Feb 1997, luthor wrote:
> How do I create two instances of a window ??
> I created an Window that contains some information of an object, and
> I'd like to use an another instance of the window to create another that
> contains other information, without creating another toplevel.
> Is it possible ????
yes... but not the way I would like it to work. You can create a compound
widget from a toplevel and save it into a compound library. This
essentially creates a string representation of a widget branch which
can be re-instantiated by calling
vTcl:insert_compound <widget_name> <compound_string>
after sourcing the compound library.
the _ideal_ way to do this is to save the toplevels utilizing the $base
variable (which is already in place). at the time of instantiation, $base
should be overriden. this in in the works for the 1.09 release.
-stewart-