Query: tk_popup
OS: osx
Section: n
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
tk_popup(n) Tk Built-In Commands tk_popup(n) __________________________________________________________________________________________________________________________________________________NAMEtk_popup - Post a popup menuSYNOPSIStk_popup menu x y ?entry? _________________________________________________________________DESCRIPTIONThis procedure posts a menu at a given position on the screen and configures Tk so that the menu and its cascaded children can be traversed with the mouse or the keyboard. Menu is the name of a menu widget and x and y are the root coordinates at which to display the menu. If entry is omitted or an empty string, the menu's upper left corner is positioned at the given point. Otherwise entry gives the index of an entry in menu and the menu will be positioned so that the entry is positioned over the given point.EXAMPLEHow to attach a simple popup menu to a widget. # Create a menu set m [menu .popupMenu] $m add command -label "Example 1" -command bell $m add command -label "Example 2" -command bell # Create something to attach it to pack [label .l -text "Click me!"] # Arrange for the menu to pop up when the label is clicked bind .l <1> {tk_popup .popupMenu %X %Y}SEE ALSObind(n), menu(n), tk_optionMenu(n)KEYWORDSmenu, popup Tk 4.0 tk_popup(n)
Related Man Pages |
---|
tk_bindfortraversal(1t) - opensolaris |
xmaddtopostfromlist(3) - redhat |
xmremovefrompostfromlist(3) - redhat |
tixpopupmenu(n) - redhat |
tk_popup(3tk) - debian |
Similar Topics in the Unix Linux Community |
---|
AIX Links |
When is a _function_ not a _function_? |
Hearing Aid for OSX 10.12.x and greater. |
Undeletable file |
Syntax error in subtraction in Bash |