tk_popup man page on AIX

Man page or keyword search:  
man Server   4752 pages
apropos Keyword Search (all sections)
Output format
AIX logo
[printable version]

tk_popup(n)		     Tk Built-In Commands		   tk_popup(n)

______________________________________________________________________________

NAME
       tk_popup - Post a popup menu

SYNOPSIS
       tk_popup menu x y ?entry?
_________________________________________________________________

DESCRIPTION
       This  procedure posts a menu at a given position on the screen and con‐
       figures 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.

EXAMPLE
       How 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 ALSO
       bind(n), menu(n), tk_optionMenu(n)

KEYWORDS
       menu, popup

Tk				      4.0			   tk_popup(n)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server AIX

List of man pages available for AIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net