projman/hlp/ru/tk/message.html
2015-10-19 14:27:31 +04:00

163 lines
6.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>message</title>
</head>
<body>
<h1>message</h1>
<p>óÏÚÄÁÎÉÅ ÐÒÉÍÉÔÉ×Á ÓÏÏÂÝÅÎÉÑ É ÕÐÒÁ×ÌÅÎÉÅ ÉÍ.</p>
<h2><a name="óéîôáëóéó"></a>óéîôáëóéó</h2>
<pre>
<strong>message</strong> <em>ÉÍÑðÕÔÉ</em> ?<em>ÐÁÒÁÍÅÔÒÙ</em>?
</pre>
<h2><a name="óôáîäáòôîùå_ðáòáíåôòù"></a>óôáîäáòôîùå ðáòáíåôòù</h2>
<ul>
<li><strong>-anchor</strong></li>
<li><strong>-background</strong></li>
<li><strong>-borderwidth</strong></li>
<li><strong>-cursor</strong></li>
<li><strong>-font</strong></li>
<li><strong>-foreground</strong></li>
<li><strong>-highlightbackground</strong></li>
<li><strong>-highlightcolor</strong></li>
<li><strong>-highlightthickness</strong></li>
<li><strong>-padx</strong></li>
<li><strong>-pady</strong></li>
<li><strong>-relief</strong></li>
<li><strong>-takefocus</strong></li>
<li><strong>-text</strong></li>
<li><strong>-textvariable</strong></li>
<li><strong>-width</strong></li>
</ul>
<p>ðÏÄÒÏÂÎÏÅ ÏÐÉÓÁÎÉÅ ÜÔÉÈ ÐÁÒÁÍÅÔÒÏ× ÐÒÉ×ÅÄÅÎÏ × ÒÁÚÄÅÌÅ <a
href="options.html"><strong>options</strong></A>.</p>
<h2><a name="äïðïìîéôåìøîùå_ðáòáíåôòù_ðòéíéôé÷á"></a>äïðïìîéôåìøîùå ðáòáíåôòù ðòéíéôé÷á</h2>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-aspect</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>aspect</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>Aspect</strong></td></tr>
</table>
<p>ãÅÌÏÅ ÞÉÓÌÏ, ÕËÁÚÙ×ÁÀÝÅÅ ÖÅÌÁÅÍÙÅ ÐÒÏÐÏÒÃÉÉ ÔÅËÓÔÁ. åÇÏ
ÚÎÁÞÅÎÉÅ ÒÁ×ÎÏ 100*ÛÉÒÉÎÁ/×ÙÓÏÔÁ. úÎÁÞÅÎÉÅ &quot;100&quot; -
ÏÚÎÁÞÁÅÔ, ÞÔÏ ÛÉÒÉÎÁ ÔÅËÓÔÁ ÄÏÌÖÎÁ ÒÁ×ÎÑÔØÓÑ ÅÇÏ ×ÙÓÏÔÅ,
ÚÎÁÞÅÎÉÅ &quot;200&quot; - ÞÔÏ ÔÅËÓÔ ÄÏÌÖÅÎ ÂÙÔØ ×Ä×ÏÅ ÛÉÒÅ ÐÏ
ÓÒÁ×ÎÅÎÉÀ Ó ×ÙÓÏÔÏÊ, ÚÎÁÞÅÎÉÅ &quot;50&quot; - ÞÔÏ ÅÇÏ ×ÙÓÏÔÁ
ÄÏÌÖÎÁ ÂÙÔØ ×Ä×ÏÅ ÂÏÌØÛÅ ÛÉÒÉÎÙ É Ô.Ä. éÓÐÏÌØÚÕÅÔÓÑ ÄÌÑ
ÏÐÒÅÄÅÌÅÎÉÑ ÄÌÉÎÙ ÓÔÒÏËÉ, ÅÓÌÉ ÎÅ ÚÁÄÁÎ ÐÁÒÁÍÅÔÒ width. úÎÁÞÅÎÉÅ
ÐÏ ÕÍÏÌÞÁÎÉÀ ÒÁ×ÎÏ &quot;150&quot;.</p>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-justify</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>justify</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>Justify</strong></td></tr>
</table>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong> -width</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>width</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>Width</strong></td></tr>
</table>
<p>úÁÄÁÅÔ ÖÅÌÁÅÍÕÀ ÛÉÒÉÎÕ ÏËÎÁ (× ÌÀÂÏÍ ×ÉÄÅ, ÐÒÉÅÍÌÅÍÏÍ ÄÌÑ
<strong>Tk_GetPixels)</strong>. åÓÌÉ ÚÎÁÞÅÎÉÅ ÐÁÒÁÍÅÔÒÁ
ÐÏÌÏÖÉÔÅÌØÎÏ, ÔÏ ÐÁÒÁÍÅÔÒ <strong>aspect</strong> ÉÇÎÏÒÉÒÕÅÔÓÑ,
Á ÐÁÒÁÍÅÔÒ <strong>width</strong> ÚÁÄÁÅÔ ÄÌÉÎÕ ÓÔÒÏËÉ. åÓÌÉ
ÚÎÁÞÅÎÉÅ ÐÁÒÁÍÅÔÒÁ ÎÅÐÏÌÏÖÉÔÅÌØÎÏ, ÔÏ ÄÌÉÎÁ ÓÔÒÏËÉ ÏÐÒÅÄÅÌÑÅÔÓÑ
ÐÁÒÁÍÅÔÒÏÍ <strong>aspect</strong>.</p>
<h2><a name="ïðéóáîéå"></a>ïðéóáîéå</h2>
<p>ëÏÍÁÎÄÁ <strong>message</strong>ÓÏÚÁÄÁÅÔ ÎÏ×ÏÅ ÏËÎÏ (ÚÁÄÁ×ÁÅÍÏÅ
ÁÒÇÕÍÅÎÔÏÍ <em>ÉÍÑðÕÔÉ</em>) É ÐÒÅ×ÒÁÝÁÅÔ ÅÇÏ × ÐÒÉÍÉÔÉ×
ÓÏÏÂÝÅÎÉÑ. äÅÔÁÌÉ ÉÚÏÂÒÁÖÅÎÉÑ ÓÏÏÂÝÅÎÉÑ, ÔÁËÉÅ ËÁË ÅÇÏ Ã×ÅÔÁ,
ÛÒÉÆÔ, ÔÅËÓÔ É ÏÂßÅÍÎÙÊ ×ÉÄ ÚÁÄÁÀÔÓÑ Ó ÐÏÍÏÝØÀ ÏÐÉÓÁÎÎÙÈ ×ÙÛÅ
ÄÏÐÏÌÎÉÔÅÌØÎÙÈ ÐÁÒÁÍÅÔÒÏ×. ëÏÍÁÎÄÁ<strong> message
</strong>×ÏÚ×ÒÁÝÁÅÔ ÁÒÇÕÍÅÎÔ <em>ÉÍÑðÕÔÉ</em>. ÷ ÍÏÍÅÎÔ
×ÙÐÏÌÎÅÎÉÑ ÜÔÏÊ ËÏÍÁÎÄÙ ÎÅ ÄÏÌÖÎÏ ÓÕÝÅÓÔ×Ï×ÁÔØ ÏËÎÁ Ó ÉÍÅÎÅÍ
<em>ÉÍÑðÕÔÉ</em>, ÎÏ ÄÏÌÖÅÎ ÓÕÝÅÓÔ×Ï×ÁÔØ ÅÇÏ ÐÒÅÄÏË.</p>
<p>óÏÏÂÝÅÎÉÅ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ÐÒÉÍÉÔÉ×, ÐÒÅÄÎÁÚÎÁÞÅÎÎÙÊ ÄÌÑ
×Ù×ÏÄÁ ÓÔÒÏËÉ ÔÅËÓÔÁ. õ ÐÒÉÍÉÔÉ×Á ÓÏÏÂÝÅÎÉÑ ÅÓÔØ ÔÒÉ ÓÐÅÃÉÁÌØÎÙÈ
Ó×ÏÊÓÔ×Á. ÷Ï-ÐÅÒ×ÙÈ, ÏÎ ÒÁÚÂÉ×ÁÅÔ ÓÔÒÏËÕ ÓÏÏÂÝÅÎÉÑ ÎÁ ÓÔÒÏÞËÉ,
ÞÔÏÂÙ ÏÂÅÓÐÅÞÉÔØ ÚÁÄÁÎÎÙÅ ÐÒÏÐÏÒÃÉÉ ÏËÎÁ. ðÅÒÅ×ÏÄ ÓÔÒÏËÉ
ÏÓÕÝÅÓÔ×ÌÑÅÔÓÑ, ÐÏ ×ÏÚÍÏÖÎÏÓÔÉ, ÎÁ ÇÒÁÎÉÃÁÈ ÓÌÏ× (ÅÓÌÉ × ÓÔÒÏËÕ
ÎÅ ÐÏÍÅÝÁÅÔÓÑ ÎÉ ÏÄÎÏÇÏ ÃÅÌÏÇÏ ÓÌÏ×Á, ÔÏ ÓÌÏ×Ï ÒÁÚÂÉ×ÁÅÔÓÑ ÎÁ
ÎÅÓËÏÌØËÏ ÓÔÒÏË). äÌÑ ÐÅÒÅÎÏÓÁ ÓÔÒÏËÉ × ÎÅÅ ×ÓÔÁ×ÌÑÀÔÓÑ ÓÉÍ×ÏÌÙ
ÐÅÒÅ×ÏÄÁ ÓÔÒÏËÉ; ÉÈ ÍÏÖÎÏ ÉÓÐÏÌØÚÏ×ÁÔØ, ÎÁÐÒÉÍÅÒ, ÄÌÑ ×Ù×ÏÄÁ
ÐÕÓÔÙÈ ÓÔÒÏÞÅË ÎÁ ÜËÒÁÎ.</p>
<p>÷ÔÏÒÙÍ Ó×ÏÊÓÔ×ÏÍ ÐÒÉÍÉÔÉ×Á ÓÏÏÂÝÅÎÉÑ Ñ×ÌÑÅÔÓÑ ×ÏÚÍÏÖÎÏÓÔØ
×ÙÒÁ×ÎÉ×ÁÎÉÑ. óÔÒÏÞËÉ ÓÏÏÂÝÅÎÉÑ ÍÏÇÕÔ ÂÙÔØ ×ÙÒÏ×ÎÅÎÙ ×ÌÅ×Ï
(ËÁÖÄÁÑ ÓÔÒÏËÁ ÎÁÞÉÎÁÅÔÓÑ ÏÔ ÌÅ×ÏÇÏ ËÒÁÑ ÏËÎÁ), ÐÏ ÃÅÎÔÒÕ ÉÌÉ
×ÐÒÁ×Ï (ËÁÖÄÁÑ ÓÔÒÏËÁ ËÏÎÞÁÅÔÓÑ Õ ÐÒÁ×ÏÇÏ ËÒÁÑ ÏËÎÁ).</p>
<p>ôÒÅÔØÅ Ó×ÏÊÓÔ×Ï ÐÒÉÍÉÔÉ×Á ÓÏÏÂÝÅÎÉÑ ÓÏÓÔÏÉÔ × ÔÏÍ, ÞÔÏ ÏÎ
ÓÐÅÃÉÁÌØÎÙÍ ÏÂÒÁÚÏÍ ÏÂÒÁÂÁÔÙ×ÁÅÔ ÕÐÒÁ×ÌÑÀÝÉÅ ÓÉÍ×ÏÌÙ É
ÎÅÐÅÞÁÔÎÙÅ ÓÉÍ×ÏÌÙ. óÉÍ×ÏÌÙ ÔÁÂÕÌÑÃÉÉ ÚÁÍÅÎÑÀÔÓÑ ÐÒÏÂÅÌÁÍÉ,
ÞÉÓÌÏ ËÏÔÏÒÙÈ ÒÁ×ÎÏ ÒÁÓÓÔÏÑÎÉÀ ÄÏ ÂÌÉÖÁÊÛÅÇÏ ËÒÁÔÎÏÇÏ 8-ÍÉ
ÓÉÍ×ÏÌÁÍ. óÉÍ×ÏÌÙ ÐÅÒÅ×ÏÄÁ ÓÔÒÏËÉ ×ÙÚÙ×ÁÀÔ ÐÅÒÅÈÏÄ ÎÁ ÎÏ×ÕÀ
ÓÔÒÏËÕ. äÒÕÇÉÅ ÕÐÒÁ×ÌÑÀÝÉÅ ÓÉÍ×ÏÌÙ (ËÏÄ ASCII ËÏÔÏÒÙÈ ÍÅÎØÛÅ
0x20) É ÓÉÍ×ÏÌÙ, ÎÅ ÏÐÒÅÄÅÌÅÎÎÙÅ × ÛÒÉÆÔÅ ÓÏÏÂÝÅÎÉÑ, ×Ù×ÏÄÑÔÓÑ ×
×ÉÄÅ ÐÏÓÌÅÄÏ×ÁÔÅÌØÎÏÓÔÉ ÉÚ ÞÅÔÙÒÅÈ ÓÉÍ×ÏÌÏ× \xhh, ÇÄÅ hh ÜÔÏ Ä×Å
ÛÅÓÔÎÁÄÃÁÔÉÒÉÞÎÙÅ ÃÉÆÒÙ, ÐÒÅÄÓÔÁ×ÌÑÀÝÉÅ ÓÏÂÏÊ ASCII ËÏÄ ÄÁÎÎÏÇÏ
ÓÉÍ×ÏÌÁ. ÷ ÔÏÍ ÒÅÄËÏÍ ÓÌÕÞÁÅ, ËÏÇÄÁ × ÛÒÉÆÔÅ ÏÔÓÕÔÓÔ×ÕÀÔ
ÎÅËÏÔÏÒÙÅ ÉÚ ÓÉÍ×ÏÌÏ× &quot;0123456789abcdef\x&quot; ÕÐÒÁ×ÌÑÀÝÉÅ
ÓÉÍ×ÏÌÙ É ÎÅÏÐÒÅÄÅÌÅÎÎÙÅ ÓÉÍ×ÏÌÙ ×ÏÏÂÝÅ ÎÅ ×Ù×ÏÄÑÔÓÑ.</p>
<h2><a name="ëïíáîäá_ðòéíéôé÷á"></a>ëïíáîäá ðòéíéôé÷á</h2>
<p>ëÏÍÁÎÄÁ<strong> message </strong>ÓÏÚÄÁÅÔ ÎÏ×ÕÀ ËÏÍÁÎÄÕ Tcl Ó
ÉÍÅÎÅÍ <em>ÉÍÑðÕÔÉ</em>. ó ÐÏÍÏÝØÀ ÜÔÏÊ ËÏÍÁÎÄÙ ÍÏÖÎÏ ×ÙÐÏÌÎÑÔØ
ÒÁÚÌÉÞÎÙÅ ÏÐÅÒÁÃÉÉ ÎÁÄ ÐÒÉÍÉÔÉ×ÏÍ. åÅ ÏÂÝÉÊ ×ÉÄ</p>
<pre>
ÉÍÑðÕÔÉ ÐÁÒÁÍÅÔÒ ?ÁÒÇ ÁÒÇ ...?
</pre>
<p><em>ðÁÒÁÍÅÔÒ</em> É <em>ÁÒÇ</em>ÕÍÅÎÔÙ ÕÔÏÞÎÑÀÔ ÐÏ×ÅÄÅÎÉÅ
ËÏÍÁÎÄÙ. ðÒÉÍÉÔÉ×Ù ÓÏÏÂÝÅÎÉÑ ÄÏÐÕÓËÁÀÔ ÓÌÅÄÕÀÝÉÅ ÆÏÒÍÙ ËÏÍÁÎÄÙ</p>
<dl>
<dt><em>ÉÍÑðÕÔÉ</em> <strong>cget</strong> <em>ÐÁÒÁÍÅÔÒ</em></dt>
<dd>÷ÏÚ×ÒÁÝÁÅÔ ÔÅËÕÝÅÅ ÚÎÁÞÅÎÉÅ ÐÁÒÁÍÅÔÒÁ ËÏÎÆÉÇÕÒÁÃÉÉ Ó ÉÍÅÎÅÍ
<em>ÐÁÒÁÍÅÔÒ</em>.<em>ðÁÒÁÍÅÔÒ</em> ÍÏÖÅÔ ÂÙÔØ ÌÀÂÙÍ ÉÚ
ÐÁÒÁÍÅÔÒÏ× ËÏÍÁÎÄÙ <strong>message</strong>. </dd>
<dt><em>ÉÍÑðÕÔÉ</em> <strong>configure</strong>
<em>ÐÁÒÁÍÅÔÒ</em> ?<em>ÚÎÁÞÅÎÉÅ ÐÁÒÁÍÅÔÒ ÚÎÁÞÅÎÉÅ
...</em>?</dt>
<dd>úÁÐÒÁÛÉ×ÁÅÔ ÚÎÁÞÅÎÉÑ ÐÁÒÁÍÅÔÒÏ× ËÏÎÆÉÇÕÒÁÃÉÉ ÐÒÉÍÉÔÉ×Á ÉÌÉ
ÉÚÍÅÎÑÅÔ ÉÈ. åÓÌÉ <em>ÐÁÒÁÍÅÔÒ</em> ÎÅ ÕËÁÚÁÎ, ÔÏ ×ÏÚ×ÒÁÝÁÅÔ
ÓÐÉÓÏË, ÓÏÄÅÒÖÁÝÉÊ ÚÎÁÞÅÎÉÑ ×ÓÅÈ ÄÏÐÕÓÔÉÍÙÈ
×<em>ÉÍÅÎÉðÕÔÉ</em> ÐÁÒÁÍÅÔÒÏ× (ÆÏÒÍÁÔ ÓÐÉÓËÁ ÏÐÉÓÁÎ ×
<strong>Tk_ConfigureInfo</strong>). åÓÌÉ <em>ÐÁÒÁÍÅÔÒ</em>
ÚÁÄÁÎ, Á ÅÇÏ ÎÏ×ÏÅ <em>ÚÎÁÞÅÎÉÅ</em> ÎÅÔ, ÔÏ ËÏÍÁÎÄÁ
×ÏÚ×ÒÁÝÁÅÔ ÞÁÓÔØ ÐÏÌÎÏÇÏ ÓÐÉÓËÁ, ÏÔÎÏÓÑÝÕÀÓÑ Ë ÕËÁÚÁÎÎÏÍÕ
ÐÁÒÁÍÅÔÒÕ. åÓÌÉ ÚÁÄÁÎÙ ÏÄÎÁ ÉÌÉ ÎÅÓËÏÌØËÏ ÐÁÒ
<em>ÐÁÒÁÍÅÔÒ-ÚÎÁÞÅÎÉÅ</em>, ÔÏ ÕËÁÚÁÎÎÙÍ <em>ÐÁÒÁÍÅÔÒ</em>ÁÍ
ÐÒÉÍÉÔÉ×Á ÐÒÉÓ×ÁÉ×ÁÀÔÓÑ ÎÏ×ÙÅ <em>ÚÎÁÞÅÎÉÑ</em>, Á ËÏÍÁÎÄÁ
×ÏÚ×ÒÁÝÁÅÔ ÐÕÓÔÕÀ ÓÔÒÏËÕ. <em>ðÁÒÁÍÅÔÒ</em> ÍÏÖÅÔ ÂÙÔØ ÌÀÂÙÍ
ÉÚ ÐÁÒÁÍÅÔÒÏ× ËÏÍÁÎÄÙ <strong>message</strong> . </dd>
</dl>
<h2><a name="ðáòáíåôòù_ðï_õíïìþáîéà"></a>ðáòáíåôòù ðï õíïìþáîéà</h2>
<p> ðÒÉ ÓÏÚÄÁÎÉÉ ÓÏÏÂÝÅÎÉÑ ÐÁÒÁÍÅÔÒÙ ÐÏ ÕÍÏÌÞÁÎÉÀ ÏÔÓÕÔÓÔ×ÕÀÔ:
ÓÏÏÂÝÅÎÉÑ ÐÒÅÄÎÁÚÎÁÞÅÎÙ ÔÏÌØËÏ ÄÌÑ ×Ù×ÏÄÁ ÔÅËÓÔÁ. </p>
</body>
</html>