On Mon, 14 Apr 1997, Clemens Hintze wrote:
> I have wrote an own megawidget (is that the correct term?) which
> implements a notebook panel (you can also call it a tabbed widget).
>
> The syntax is:
> notebook <anchor> <tabname 1> <frame 1> ... <tabname n> <frame n>
>
> i.e: notebook .notebk "Patch" .patchPanel "Show" .showPanel
>
> Now I want to know, if there is any possibility implemented in vtcl to
> support such a widget too? (By the way, if I want to make this widget
> public, can anybody tell me, how I have to do that?)
I've termed these "compound" widgets in Visual Tcl. You can create a
compound by selecting the root/container widget and selecting
"Compound:Create" from the menu (or Alt-C). You will be promped for a
widget name. You can then save these compounds to disk with
"Compounds:Save Compounds" from the menu and re-load them with
"Compounds:Load Compounds". I can create a contrib directory on the
ftp site if people wish to share these.
If you wish to bundle functions with a compound, the function names
must begin with the name of the compound. For example, if you create
a compound called "BigWidget" then all functions beginning with
"BigWidget:" will be included in the archive.
> Is there any possibility to handle unpacked(~grid,~place) widgets via
> vtcl? The notebook widget would pack the corresponding frames by itself
> (pack/unpack them)?
I'm note sure I follow you.
> If I hide a widget in vtcl-1.08 (on Linux/wish4.2) the widget seems to
> be lost.
Use the Widget Tree (Alt-W) under the Window menu. Find the widget and
click on it to un-hide it.
-stewart-