| GRIDPLUS - Reference | ![]() |
||||||
|
| GRIDPLUS Commands/Modes |
Note: If you are new to GRIDPLUS read the grid reference first.
The main GRIDPLUS command has the following format:-
gridplus::gridplus mode ?option value(s) ...? ?layout?
The modes available are:-
| add | Add non-Gridplus widget to Group. | |
| button | Create Grid of buttons. | |
| checkbutton | Create Grid of checkbuttons. | |
| clear | Clear specified window. | |
| entry | Create Grid of entries. | |
| goto | Goto specified label in tagged text display. | |
| grid | Create GRIDPLUS Grid. | |
| layout | Create GRIDPLUS Layout. | |
| line | Create line. | |
| link | Create Grid of links. | |
| menu | Create menubar. | |
| notebook | Create notebook. | |
| radiobutton | Create Grid of radiobuttons. | |
| set | Set GRIDPLUS options. | |
| style | Create style. | |
| tablelist | Create scrollable tablelist. | |
| text | Create scrollable text. | |
| tree | Create scrollable tree. | |
| window | Create toplevel window and set window options. |
The following GRIDPLUS commands are used to set/unset the values of GRIDPLUS items/widgets:-
gridplus::gpmap itemlist valuelist
gridplus::gpset item value -or- gridplus::gpset {item value ...}
gridplus::gpunset {item ...}
| GRIDPLUS Generated Widget/Command Names |
Widget Names:
grid_name,widget_id
| grid_name | Name of grid. |
| widget_id | Widget ID without leading dot. |
Examples assuming an entry with ID ".firstname" in grid ".person":-
| Main/Root Window: | .person,firstname |
| Toplevel Window: | .mywindow.person,firstname |
Command/Callback Names:
grid,widget_id
...or...
toplevel:grid,widget_id
| grid | Name of grid without leading dot. |
| toplevel | Name of toplevel window without leading dot. |
| widget_id | Widget ID without leading dot. |
Examples assuming a button with ID ".saveperson" in grid ".actions":-
| Main/Root Window: | actions,saveperson |
| Toplevel Window: | mywindow:actions,saveperson |