tui::clicktui
Gives a press of a mouse button at a cell to the widget there.
tui::click X Y ?BUTTON?
Description
The widget gets the focus when it takes it, and the event <Button-N> with %x and %y in the widget. A click with button 1 invokes a button.
Returns
An empty string.
Examples
% tui::button .c -text C -command {set ::c 1}; tui::pack .c; tui::click [tui::winfo x .c] [tui::winfo y .c]; set ::c
1
Errors
% tui::click 0 0 9
bad button "9": must be 1 to 5
-errorcode ZTCL TUI VALUE
Facts
- Capability
tui. A new interpreter does not have it until the host turns it on.- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.7
The full page: tui::click.