{"id":6156,"date":"2022-12-20T18:57:58","date_gmt":"2022-12-20T21:57:58","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/message-mann\/"},"modified":"2022-12-20T18:57:58","modified_gmt":"2022-12-20T21:57:58","slug":"message-mann","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/message-mann\/","title":{"rendered":"message (mann)"},"content":{"rendered":"<h1 align=\"center\">message<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#STANDARD OPTIONS\">STANDARD OPTIONS<\/a><br \/> <a href=\"#WIDGET-SPECIFIC OPTIONS\">WIDGET-SPECIFIC OPTIONS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#WIDGET COMMAND\">WIDGET COMMAND<\/a><br \/> <a href=\"#DEFAULT BINDINGS\">DEFAULT BINDINGS<\/a><br \/> <a href=\"#BUGS\">BUGS<\/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\">message \u2212 Create and manipulate \u2019message\u2019 non-interactive text widgets<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>message<\/b> <i>pathName<\/i> ?<i>options<\/i>?<\/p>\n<h2>STANDARD OPTIONS <a name=\"STANDARD OPTIONS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p><b>\u2212anchor<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212background<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212borderwidth<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p><b>\u2212cursor<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212font<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212foreground<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p><b>\u2212highlightbackground<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212highlightcolor<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212highlightthickness<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p><b>\u2212padx<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212pady<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212relief<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"23%\">\n<p><b>\u2212takefocus<\/b><\/p>\n<\/td>\n<td width=\"32%\">\n<p><b>\u2212text<\/b><\/p>\n<\/td>\n<td width=\"34%\">\n<p><b>\u2212textvariable<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">See the <b>options<\/b> manual entry for details on the standard options.<\/p>\n<h2>WIDGET-SPECIFIC OPTIONS <a name=\"WIDGET-SPECIFIC OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212aspect<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Name:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>aspect<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Class:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>Aspect<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Specifies a non-negative integer value indicating desired aspect ratio for the text. The aspect ratio is specified as 100*width\/height. 100 means the text should be as wide as it is tall, 200 means the text should be twice as wide as it is tall, 50 means the text should be twice as tall as it is wide, and so on. Used to choose line length for text if <b>\u2212width<\/b> option is not specified. Defaults to 150.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212justify<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Name:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>justify<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Class:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>Justify<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Specifies how to justify lines of text. Must be one of <b>left<\/b>, <b>center<\/b>, or <b>right<\/b>. Defaults to <b>left<\/b>. This option works together with the <b>\u2212anchor<\/b>, <b>\u2212aspect<\/b>, <b>\u2212padx<\/b>, <b>\u2212pady<\/b>, and <b>\u2212width<\/b> options to provide a variety of arrangements of the text within the window. The <b>\u2212aspect<\/b> and <b>\u2212width<\/b> options determine the amount of screen space needed to display the text. The <b>\u2212anchor<\/b>, <b>\u2212padx<\/b>, and <b>\u2212pady<\/b> options determine where this rectangular area is displayed within the widget\u2019s window, and the <b>\u2212justify<\/b> option determines how each line is displayed within that rectangular region. For example, suppose <b>\u2212anchor<\/b> is <b>e<\/b> and <b>\u2212justify<\/b> is <b>left<\/b>, and that the message window is much larger than needed for the text. The text will be displayed so that the left edges of all the lines line up and the right edge of the longest line is <b>\u2212padx<\/b> from the right side of the window; the entire text block will be centered in the vertical span of the window.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Command-Line Name:<b>\u2212width<\/b><\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Name:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>width<\/b><\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"14%\">\n<p>Database Class:<\/p>\n<\/td>\n<td width=\"75%\">\n<p><b>Width<\/b><\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:22%; margin-top: 1em\">Specifies the length of lines in the window. The value may have any of the forms acceptable to <b>Tk_GetPixels<\/b>. If this option has a value greater than zero then the <b>\u2212aspect<\/b> option is ignored and the <b>\u2212width<\/b> option determines the line length. If this option has a value less than or equal to zero, then the <b>\u2212aspect<\/b> option determines the line length. ______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>message<\/b> command creates a new window (given by the <i>pathName<\/i> argument) and makes it into a message widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the message such as its colors, font, text, and initial relief. The <b>message<\/b> command returns its <i>pathName<\/i> argument. At the time this command is invoked, there must not exist a window named <i>pathName<\/i>, but <i>pathName<\/i>\u2019s parent must exist.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">A message is a widget that displays a textual string. A message widget has three special features that differentiate it from a <b>label<\/b> widget. First, it breaks up its string into lines in order to produce a given aspect ratio for the window. The line breaks are chosen at word boundaries wherever possible (if not even a single word would fit on a line, then the word will be split across lines). Newline characters in the string will force line breaks; they can be used, for example, to leave blank lines in the display.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The second feature of a message widget is justification. The text may be displayed left-justified (each line starts at the left side of the window), centered on a line-by-line basis, or right-justified (each line ends at the right side of the window).<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The third feature of a message widget is that it handles control characters and non-printing characters specially. Tab characters are replaced with enough blank space to line up on the next 8-character boundary. Newlines cause line breaks. Other control characters (ASCII code less than 0x20) and characters not defined in the font are displayed as a four-character sequence <b>x<\/b><i>hh<\/i> where <i>hh<\/i> is the two-digit hexadecimal number corresponding to the character. In the unusual case where the font does not contain all of the characters in \u201c0123456789abcdefx\u201d then control characters and undefined characters are not displayed at all.<\/p>\n<h2>WIDGET COMMAND <a name=\"WIDGET COMMAND\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The <b>message<\/b> command creates a new Tcl command whose name is <i>pathName<\/i>. This command may be used to invoke various operations on the widget. It has the following general form:<\/p>\n<p style=\"margin-left:22%;\"><i>pathName option<\/i> ?<i>arg arg &#8230;<\/i>?<\/p>\n<p style=\"margin-left:11%;\"><i>Option<\/i> and the <i>arg<\/i>s determine the exact behavior of the command. The following commands are possible for message widgets: <i><br \/> pathName<\/i> <b>cget<\/b> <i>option<\/i><\/p>\n<p style=\"margin-left:22%;\">Returns the current value of the configuration option given by <i>option<\/i>. <i>Option<\/i> may have any of the values accepted by the <b>message<\/b> command.<\/p>\n<p style=\"margin-left:11%;\"><i>pathName<\/i> <b>configure<\/b> ?<i>option<\/i>? ?<i>value option value &#8230;<\/i>?<\/p>\n<p style=\"margin-left:22%;\">Query or modify the configuration options of the widget. If no <i>option<\/i> is specified, returns a list describing all of the available options for <i>pathName<\/i> (see <b>Tk_ConfigureInfo<\/b> for information on the format of this list). If <i>option<\/i> is specified with no <i>value<\/i>, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no <i>option<\/i> is specified). If one or more <i>option\u2212value<\/i> pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. <i>Option<\/i> may have any of the values accepted by the <b>message<\/b> command.<\/p>\n<h2>DEFAULT BINDINGS <a name=\"DEFAULT BINDINGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">When a new message is created, it has no default event bindings: messages are intended for output purposes only.<\/p>\n<h2>BUGS <a name=\"BUGS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Tabs do not work very well with text that is centered or right-justified. The most common result is that the line is justified wrong.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">label(n)<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">message, widget<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  message \u2212 Create and manipulate \u2019message\u2019 non-interactive text widgets <\/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,2804],"class_list":["post-6156","post","type-post","status-publish","format-standard","hentry","category-n-comandos-tcl-tk","category-sin-categoria","tag-mann","tag-message"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6156","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=6156"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6156\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}