home *** CD-ROM | disk | FTP | other *** search
-
-
- gadget add hit left top width height [relbottom] [relright]
- [relwidth] [relheight] [disabled]
- [up tclcode] [down tclcode]
-
- add a hitbox gadget. Your up routine is executed if specified
- when the mouse button goes up and your down routine is
- executed if specified when the button goes down.
-
- gadget add toggle left top width height [relbottom] [relright]
- [relwidth] [relheight] [selected] [disabled]
- [up tclcode] [down tclcode]
-
- add a toggle gadget. Up and down routines are executed as
- above. If selected is set, it will appear selected when
- created.
-
- gadget add string left top width height initial [relbottom] [relright]
- [relwidth] [relheight] [selected] [disabled]
- [up tclcode] [down tclcode]
- [stringcenter] [stringright]
-
- add a string gadget. Strings can be 100 chars long max.
- The down routine, if specified, is executed when the user
- clicks in the gadget area, the up routine, if specified,
- is executed when the user hits enter.
-
- gadget add integer left top width height initial [relbottom] [relright]
- [relwidth] [relheight] [selected] [disabled]
- [up tclcode] [down tclcode]
-
- A variation of string gadget, this guy allows one to enter
- integers.
-
- gadget add proportional left top width height [relbottom] [relright]
- [relwidth] [relheight] [selected] [disabled]
- [up tclcode] [down tclcode]
- [horizontal index pixels_per_unit total]
- [vertical index pixels_per_unit total]
- index is the current index, pixels_per_unit is the pixels
- per unit of things we're dealing with, usually font height
- and width, total is the total number of units.
-
- gadget remove gadgethandle
- get rid of gadget
-
- gadget on gadgethandle
- unghost it
-
- gadget off gadgethandle
- ghost it
-
- gadget value gadgethandle
- gadget value gadgethandle [vertical,horizontal,vertunits,horizunits]
- Fetch the value, boolean gadgets come out 0/1.
- prop gadgets return the current position relative to the number
- passed for a total when created or last setvalue
- horizunits and vertunits are the number of units (calculated from
- the current gadget size and pixels_per_unit given at gadget
- definition time) displayable on the screen in the relevant direction
-
- gadget setvalue gadgethandle string or 0/1 for toggle
- gadget setvalue gadgethandle [vertical,horizontal] currentindex total
- for prop gadgets
-
- gadget refresh
- refresh the gadgets
-
-