{"id":6079,"date":"2022-12-20T18:57:54","date_gmt":"2022-12-20T21:57:54","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/tk_messagebox-mann\/"},"modified":"2022-12-20T18:57:54","modified_gmt":"2022-12-20T21:57:54","slug":"tk_messagebox-mann","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/tk_messagebox-mann\/","title":{"rendered":"tk_messageBox (mann)"},"content":{"rendered":"<h1 align=\"center\">tk_messageBox<\/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=\"#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_messageBox \u2212 pops up a message window and waits for user response.<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>tk_messageBox<\/b> ?<i>option value &#8230;<\/i>? ______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This procedure creates and displays a message window with an application-specified message, an icon and a set of buttons. Each of the buttons in the message window is identified by a unique symbolic name (see the <b>\u2212type<\/b> options). After the message window is popped up, <b>tk_messageBox<\/b> waits for the user to select one of the buttons. Then it returns the symbolic name of the selected button.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The following option-value pairs are supported: <b><br \/> \u2212command<\/b> <i>string<\/i><\/p>\n<p style=\"margin-left:22%;\">Specifies the prefix of a Tcl command to invoke when the user closes the dialog. The actual command consists of <i>string<\/i> followed by a space and the name of the button clicked by the user to close the dialog. This is only available on Mac OS X.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212default<\/b> <i>name<\/i><\/p>\n<p style=\"margin-left:22%;\"><i>Name<\/i> gives the symbolic name of the default button for this message window ( \u201cok\u201d, \u201ccancel\u201d, and so on). See <b>\u2212type<\/b> for a list of the symbolic names. If this option is not specified, the first button in the dialog will be made the default.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212detail<\/b> <i>string<\/i><\/p>\n<p style=\"margin-left:22%;\">Specifies an auxiliary message to the main message given by the <b>\u2212message<\/b> option. The message detail will be presented beneath the main message and, where supported by the OS, in a less emphasized font than the main message.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212icon<\/b> <i>iconImage<\/i><\/p>\n<p style=\"margin-left:22%;\">Specifies an icon to display. <i>IconImage<\/i> must be one of the following: <b>error<\/b>, <b>info<\/b>, <b>question<\/b> or <b>warning<\/b>. If this option is not specified, then the info icon will be displayed.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212message<\/b> <i>string<\/i><\/p>\n<p style=\"margin-left:22%;\">Specifies the message to display in this message box. The default value is an empty string.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212parent<\/b> <i>window<\/i><\/p>\n<p style=\"margin-left:22%;\">Makes <i>window<\/i> the logical parent of the message box. The message box is displayed on top of its parent window.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212title<\/b> <i>titleString<\/i><\/p>\n<p style=\"margin-left:22%;\">Specifies a string to display as the title of the message box. This option is ignored on Mac OS X, where platform guidelines forbid the use of a title on this kind of dialog.<\/p>\n<p style=\"margin-left:11%;\"><b>\u2212type<\/b> <i>predefinedType<\/i><\/p>\n<p style=\"margin-left:22%;\">Arranges for a predefined set of buttons to be displayed. The following values are possible for <i>predefinedType<\/i>:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"24%\">\n<p><b>abortretryignore<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"51%\">\n<p>Displays three buttons whose symbolic names are <b>abort<\/b>, <b>retry<\/b> and <b>ignore<\/b>.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"24%\">\n<p><b>ok<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"51%\">\n<p>Displays one button whose symbolic name is <b>ok<\/b>.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"24%\">\n<p><b>okcancel<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"51%\">\n<p>Displays two buttons whose symbolic names are <b>ok<\/b> and <b>cancel<\/b>.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"24%\">\n<p><b>retrycancel<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"51%\">\n<p>Displays two buttons whose symbolic names are <b>retry<\/b> and <b>cancel<\/b>.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"24%\">\n<p><b>yesno<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"51%\">\n<p>Displays two buttons whose symbolic names are <b>yes<\/b> and <b>no<\/b>.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"22%\"><\/td>\n<td width=\"24%\">\n<p><b>yesnocancel<\/b><\/p>\n<\/td>\n<td width=\"3%\"><\/td>\n<td width=\"51%\">\n<p>Displays three buttons whose symbolic names are <b>yes<\/b>, <b>no<\/b> and <b>cancel<\/b>.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>EXAMPLE <a name=\"EXAMPLE\"><\/a> <\/h2>\n<p style=\"margin-left:22%; margin-top: 1em\">set answer [<b>tk_messageBox<\/b> \u2212message &#8220;Really quit?&#8221;  <br \/> \u2212icon question \u2212type yesno  <br \/> \u2212detail &#8220;Select &#8220;Yes&#8221; to make the application exit&#8221;] <br \/> switch \u2212\u2212 $answer { <br \/> yes exit <br \/> no {<b>tk_messageBox<\/b> \u2212message &#8220;I know you like this application!&#8221;  <br \/> \u2212type ok} <br \/> }<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">message box<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  tk_messageBox \u2212 pops up a message window and waits for user response. <\/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,2750],"class_list":["post-6079","post","type-post","status-publish","format-standard","hentry","category-n-comandos-tcl-tk","category-sin-categoria","tag-mann","tag-tk_messagebox"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6079","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=6079"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6079\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}