{"id":6339,"date":"2022-12-20T18:58:11","date_gmt":"2022-12-20T21:58:11","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/tk_popup-mann\/"},"modified":"2022-12-20T18:58:11","modified_gmt":"2022-12-20T21:58:11","slug":"tk_popup-mann","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/tk_popup-mann\/","title":{"rendered":"tk_popup (mann)"},"content":{"rendered":"<h1 align=\"center\">tk_popup<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#EXAMPLE\">EXAMPLE<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#KEYWORDS\">KEYWORDS<\/a> <\/p>\n<hr>\n<p>______________________________________________________________________________<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">tk_popup \u2212 Post a popup menu<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>tk_popup<\/b> <i>menu x y<\/i> ?<i>entry<\/i>? ______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This 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. <i>Menu<\/i> is the name of a menu widget and <i>x<\/i> and <i>y<\/i> are the root coordinates at which to display the menu. If <i>entry<\/i> is omitted or an empty string, the menu\u2019s upper left corner is positioned at the given point. Otherwise <i>entry<\/i> gives the index of an entry in <i>menu<\/i> and the menu will be positioned so that the entry is positioned over the given point.<\/p>\n<h2>EXAMPLE <a name=\"EXAMPLE\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">How to attach a simple popup menu to a widget.<\/p>\n<p style=\"margin-left:22%;\"># Create a menu <br \/> set m [menu .popupMenu] <br \/> $m add command \u2212label &#8220;Example 1&#8221; \u2212command bell <br \/> $m add command \u2212label &#8220;Example 2&#8221; \u2212command bell<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"># Create something to attach it to <br \/> pack [label .l \u2212text &#8220;Click me!&#8221;]<\/p>\n<p style=\"margin-left:22%; margin-top: 1em\"># Arrange for the menu to pop up when the label is clicked <br \/> bind .l <1> {<b>tk_popup<\/b> .popupMenu %X %Y}<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">bind(n), menu(n), tk_optionMenu(n)<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">menu, popup<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  tk_popup \u2212 Post a popup menu <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3783,1],"tags":[2635,2931],"class_list":["post-6339","post","type-post","status-publish","format-standard","hentry","category-n-comandos-tcl-tk","category-sin-categoria","tag-mann","tag-tk_popup"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=6339"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6339\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}