This document explains how to define a widget in Visual Tcl. If you are making your own widgets for your install of VTcl, you should put your files in the 'user' subdirectory. This will ensure that you don't overwrite any VTcl widgets and that they will not conflict with later releases of VTcl. You should be careful when defining widgets that you don't overwrite a default widget type or class. For example, don't name your widget button, because you will overwrite the default Tk button type. And, don't make a new button and call its Class 'Button', because again, you will overwrite the default button class. Instead, try to use your own names for widgets. Each widget is defined seperately in its own file with the extension .wgt The following are the possible options in a widget file: Name Name of Widget. This is also considered to be the "type" of widget by vTcl. Class Widget class IsSuperClass This widget is a super class widget. Super class widgets are widgets which are not created themselves, but represent sub widgets. Example: scrollbars, scales. A scrollbar is a widget, but vTcl recognizes two different "types" of scrollbars: vertical and horizontal. So, Scrollbar is the super class, and scrollbar_v and scrollbar_h are the sub widget types. SuperClass The super class of this widget. This widget is a subwidget. Lib Widget library (core, itcl, tix, etc...) CreateCmd Command to create the widget (defaults to ) AddOptions