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

380 lines
15 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>scale</title>
</head>
<body>
<h1>scale</h1>
<p>óÏÚÄÁÎÉÅ ÐÒÉÍÉÔÉ×Á ÌÉÎÅÊÎÏÊ ÛËÁÌÙ É ÕÐÒÁ×ÌÅÎÉÅ ÉÍ.</p>
<h2><a name="óéîôáëóéó"></a>óéîôáëóéó</h2>
<pre>
<strong>scale</strong> <em>ÉÍÑðÕÔÉ</em> ?<em>ÐÁÒÁÍÅÔÒÙ</em>?
</pre>
<h2><a name="óôáîäáòôîùå_ðáòáíåôòù"></a>óôáîäáòôîùå ðáòáíåôòù</h2>
<ul>
<li><strong>-activebackground</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>-orient</strong></li>
<li><strong>-relief</strong></li>
<li><strong>-repeatdelay</strong></li>
<li><strong>-repeatinterval</strong></li>
<li><strong>-takefocus</strong></li>
<li><strong>-troughcolor</strong></li>
</ul>
<p>ðÏÄÒÏÂÎÏÅ ÏÐÉÓÁÎÉÅ ÜÔÉÈ ÐÁÒÁÍÅÔÒÏ× ÐÒÉ×ÅÄÅÎÏ × ÒÁÚÄÅÌÅ <a
href="options.html"><strong>options</strong></a>.</p>
<h2><a name="äïðïìîéôåìøîùå_ðáòáíåôòù_ðòéíéôé÷á"></a>äïðïìîéôåìøîùå ðáòáíåôòù ðòéíéôé÷á</h2>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-bigincrement</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>bigIncrement</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>BigIncrement</strong></td></tr>
</table>
<p>îÅËÏÔÏÒÙÅ ÓÐÏÓÏÂÙ ÏÂÒÁÝÅÎÉÑ ÓÏ ÛËÁÌÏÊ ÔÒÅÂÕÀÔ ÉÓÐÏÌØÚÏ×ÁÎÉÑ
&quot;ÂÏÌØÛÉÈ&quot; ÛÁÇÏ×. üÔÏÔ ÐÁÒÁÍÅÔÒ ÚÁÄÁÅÔ ×ÅÌÉÞÉÎÕ
ÂÏÌØÛÏÇÏ ÛÁÇÁ. åÓÌÉ ÅÇÏ ÚÎÁÞÅÎÉÅ ÒÁ×ÎÏ 0 (ËÁË, ÎÁÐÒÉÍÅÒ, ÐÏ
ÕÍÏÌÞÁÎÉÀ), ÔÏ ÂÏÌØÛÏÊ ÛÁÇ ÓÞÉÔÁÅÔÓÑ ÒÁ×ÎÙÍ 1/10 ÉÎÔÅÒ×ÁÌÁ
ÛËÁÌÙ.</p>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-command</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>command</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>Command</strong></td></tr>
</table>
<p>úÁÄÁÅÔ ÐÒÅÆÉËÓ ËÏÍÁÎÄÙ Tcl, ÉÓÐÏÌÎÑÅÍÏÊ ÐÒÉ ×ÓÑËÏÍ ÉÚÍÅÎÅÎÉÉ
ÐÏËÁÚÁÔÅÌÑ ÛËÁÌÙ ËÁËÏÊ-ÌÉÂÏ ËÏÍÁÎÄÏÊ ÐÒÉÍÉÔÉ×Á. óÁÍÁ ËÏÍÁÎÄÁ Tcl
ÓÏÓÔÏÉÔ ÉÚ ÜÔÏÇÏ ÐÒÅÆÉËÓÁ, ÚÁ ËÏÔÏÒÙÍ ÓÌÅÄÕÅÔ ÐÒÏÂÅÌ É
×ÅÝÅÓÔ×ÅÎÎÏÅ ÞÉÓÌÏ, ÒÁ×ÎÏÅ ÎÏ×ÏÍÕ ÚÎÁÞÅÎÉÀ ÐÏËÁÚÁÔÅÌÑ ÛËÁÌÙ.
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-digits</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>digits</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>Digits</strong></td></tr>
</table>
<p>ãÅÌÏÅ ÞÉÓÌÏ, ÕËÁÚÙ×ÁÀÝÅÅ, ÓËÏÌØËÏ ÚÎÁÞÁÝÉÈ ÃÉÆÒ ÓÌÅÄÕÅÔ
ÓÏÈÒÁÎÉÔØ ÐÒÉ ÐÒÅÏÂÒÁÚÏ×ÁÎÉÉ ÐÏËÁÚÁÔÅÌÑ ÛËÁÌÙ × ÓÔÒÏËÕ
ÔÅËÓÔÁ. åÓÌÉ ÜÔÏ ÞÉÓÌÏ ÎÅÐÏÌÏÖÉÔÅÌØÎÏ, ÔÏ ×ÙÂÉÒÁÅÔÓÑ ÎÁÉÍÅÎØÛÅÅ
ÞÉÓÌÏ, ÏÂÅÓÐÅÞÉ×ÁÀÝÅÅ ÒÁÚÌÉÞÎÏÅ ÐÒÅÄÓÔÁ×ÌÅÎÉÅ ×ÓÅÈ ×ÏÚÍÏÖÎÙÈ
ÐÏÌÏÖÅÎÉÊ Ä×ÉÖËÁ ÛËÁÌÙ.<br>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-from</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>from</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>From</strong></td></tr>
</table>
<p>÷ÅÝÅÓÔ×ÅÎÎÏÅ ÞÉÓÌÏ ÌÅ×ÁÑ ÉÌÉ ×ÅÒÈÎÑÑ ÇÒÁÎÉÃÁ ÛËÁÌÙ.</p>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-label</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>label</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>Label</strong></td></tr>
</table>
<p>óÔÒÏËÁ ÔÅËÓÔÁ, ×Ù×ÏÄÉÍÁÑ × ËÁÞÅÓÔ×Å ÎÁÚ×ÁÎÉÑ ÛËÁÌÙ. äÌÑ
×ÅÒÔÉËÁÌØÎÏÊ ÛËÁÌÙ ×Ù×ÏÄÉÔÓÑ ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ÓÐÒÁ×Á ÏÔ ×ÅÒÈÎÅÇÏ
ËÏÎÃÁ ÛËÁÌÙ. äÌÑ ÇÏÒÉÚÏÎÔÁÌØÎÏÊ ÛËÁÌÙ ÎÁÚ×ÁÎÉÅ ×Ù×ÏÄÉÔÓÑ
ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ×ÙÛÅ ÌÅ×ÏÇÏ ËÏÎÃÁ ÛËÁÌÙ. åÓÌÉ ÚÎÁÞÅÎÉÅÍ
ÐÁÒÁÍÅÔÒÁ ÓÌÕÖÉÔ ÐÕÓÔÁÑ ÓÔÒÏËÁ, ÔÏ ÎÉËÁËÏÇÏ ÎÁÚ×ÁÎÉÑ ÎÅ
×Ù×ÏÄÉÔÓÑ.</p>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-length</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>length</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>Length</strong></td></tr>
</table>
<p>úÁÄÁÅÔ ÖÅÌÁÅÍÕÀ ÄÌÉÎÕ ÛËÁÌÙ ÎÁ ÜËÒÁÎÅ × ÐÉËÓÅÌÁÈ (Ô.Å. × ÌÀÂÏÊ
ÆÏÒÍÅ, ÐÒÉÅÍÌÅÍÏÊ ÄÌÑ <strong>Tk_GetPixels</strong>). üÔÏ ×ÙÓÏÔÁ
×ÅÒÔÉËÁÌØÎÏÊ ÛËÁÌÙ ÉÌÉ ÛÉÒÉÎÁ ÇÏÒÉÚÏÎÔÁÌØÎÏÊ.</p>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-resolution</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>resolution</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>Resolution</strong></td></tr>
</table>
<p>÷ÅÝÅÓÔ×ÅÎÎÏÅ ÞÉÓÌÏ, ÚÁÄÁÀÝÅÅ ÃÅÎÕ ÄÅÌÅÎÉÑ ÛËÁÌÙ. åÓÌÉ ÜÔÏ
ÚÎÁÞÅÎÉÅ ÐÏÌÏÖÉÔÅÌØÎÏ, ÔÏ ÐÏËÁÚÁÔÅÌØ ÛËÁÌÙ ÂÕÄÅÔ ×ÓÅÇÄÁ
ÏËÒÕÇÌÑÔØÓÑ Ë ÃÅÌÏÍÕ ËÒÁÔÎÏÍÕ ÜÔÏÊ ×ÅÌÉÞÉÎÙ (ÔÁËÉÍÉ ÂÕÄÕÔ, ×
ÞÁÓÔÎÏÓÔÉ, ÍÅÔËÉ ÛËÁÌÙ É ÇÒÁÎÉÃÙ ÅÅ ÉÎÔÅÒ×ÁÌÁ). åÓÌÉ ÜÔÏ
ÚÎÁÞÅÎÉÅ ÎÅÐÏÌÏÖÉÔÅÌØÎÏ, ÔÏ ÏËÒÕÇÌÅÎÉÑ ÎÅ ÐÒÏÉÓÈÏÄÉÔ. úÎÁÞÅÎÉÅ
ÐÁÒÁÍÅÔÒÁ ÐÏ ÕÍÏÌÞÁÎÉÀ ÒÁ×ÎÏ &quot;1&quot; (Ô.Å. ÐÏËÁÚÁÔÅÌÉ
ÄÏÌÖÎÙ ÂÙÔØ ÃÅÌÙÍÉ).</p>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-showvalue</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>showValue</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>ShowValue</strong></td></tr>
</table>
<p>âÕÌÅ×ÓËÏÅ ÚÎÁÞÅÎÉÅ, ÕËÁÚÙ×ÁÀÝÅÅ, ÓÌÅÄÕÅÔ ÉÌÉ ÎÅÔ ×Ù×ÏÄÉÔØ
ÔÅËÕÝÉÊ ÐÏËÁÚÁÔÅÌØ ÛËÁÌÙ.</p>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-sliderlength</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>sliderLength</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>SliderLength</strong></td></tr>
</table>
<p>úÁÄÁÅÔ ÒÁÚÍÅÒ Ä×ÉÖËÁ ÛËÁÌÙ (×ÄÏÌØ ÅÇÏ ÄÌÉÎÎÏÊ ÓÔÏÒÏÎÙ) ×
ÐÉËÓÅÌÁÈ (Ô.Å. × ÌÀÂÏÊ ÆÏÒÍÅ, ÐÒÉÅÍÌÅÍÏÊ ÄÌÑ
<strong>Tk_GetPixels</strong>).</p>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-sliderrelief</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>sliderRelief</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>SliderRelief</strong></td></tr>
</table>
<p>úÁÄÁÅÔ ×ÉÄ Ä×ÉÖËÁ ÛËÁÌÙ, ÎÁÐÒÉÍÅÒ, <strong>raised</strong> ÉÌÉ
<strong>sunken</strong>.</p>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-state</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>state</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>State</strong></td></tr>
</table>
<p>úÁÄÁÅÔ ÏÄÎÏ ÉÚ ÔÒÅÈ ÓÏÓÔÏÑÎÉÊ ÛËÁÌÙ:
<strong>normal</strong>,<strong>active</strong> ÉÌÉ
<strong>disabled</strong>. åÓÌÉ ÛËÁÌÁ ÎÅÄÏÓÔÕÐÎÁ, ÔÏ ÚÎÁÞÅÎÉÅ ÅÅ
ÐÏËÁÚÁÔÅÌÑ ÎÅÌØÚÑ ÉÚÍÅÎÉÔØ É ÛËÁÌÕ ÎÅÌØÚÑ ÁËÔÉ×ÉÚÉÒÏ×ÁÔØ. ä×ÉÖÏË
ÎÁ ÁËÔÉ×ÎÏÊ ÛËÁÌÅ ÉÚÏÂÒÁÖÁÅÔÓÑ Ã×ÅÔÏÍ, ÚÁÄÁÎÎÙÍ ÐÁÒÁÍÅÔÒÏÍ
<strong>activeBackground</strong>.</p>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-tickinterval</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>tickInterval</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>TickInterval</strong></td></tr>
</table>
<p>÷ÅÝÅÓÔ×ÅÎÎÏÅ ÞÉÓÌÏ, ÏÐÒÅÄÅÌÑÀÝÅÅ ×ÅÌÉÞÉÎÕ ÐÒÏÍÅÖÕÔËÁ ÍÅÖÄÕ
ÞÉÓÌÏ×ÙÍÉ ÍÅÔËÁÍÉ ÓÎÉÚÕ ÉÌÉ ÓÌÅ×Á ÏÔ Ä×ÉÖËÁ. åÓÌÉ ÚÎÁÞÅÎÉÅ
ÐÁÒÁÍÅÔÒÁ ÒÁ×ÎÏ &quot;0&quot;, ÔÏ ÍÅÔËÉ ÎÅ ×Ù×ÏÄÑÔÓÑ.</p>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-to</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>to</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>To</strong></td></tr>
</table>
<p>÷ÅÝÅÓÔ×ÅÎÎÏÅ ÞÉÓÌÏ ÐÒÁ×ÁÑ ÉÌÉ ÎÉÖÎÑÑ ÇÒÁÎÉÃÁ ÛËÁÌÙ. íÏÖÅÔ ÂÙÔØ
ËÁË ÍÅÎØÛÅ, ÔÁË É ÂÏÌØÛÅ ÚÎÁÞÅÎÉÑ, ÚÁÄÁ×ÁÅÍÏÇÏ ÐÁÒÁÍÅÔÒÏÍ
<strong>from</strong>.</p>
<table>
<tr><td>éÍÑ ÐÁÒÁÍÅÔÒÁ:</td><td><strong>-variable</strong></td></tr>
<tr><td>éÍÑ × âÁÚÅ:</td><td><strong>variable</strong></td></tr>
<tr><td>ëÌÁÓÓ × âÁÚÅ:</td><td><strong>Variable</strong></td></tr>
</table>
<p>úÁÄÁÅÔ ÉÍÑ ÇÌÏÂÁÌØÎÏÊ ÐÅÒÅÍÅÎÎÏÊ, ÁÓÓÏÃÉÉÒÏ×ÁÎÎÏÊ ÓÏ
ÛËÁÌÏÊ. ðÒÉ ÉÚÍÅÎÅÎÉÉ ÚÎÁÞÅÎÉÑ ÐÅÒÅÍÅÎÎÏÊ ÛËÁÌÁ ÏÂÎÏ×ÌÑÅÔÓÑ É
ÐÏËÁÚÙ×ÁÅÔ ÎÏ×ÏÅ ÚÎÁÞÅÎÉÅ. ðÒÉ ÉÎÔÅÒÁËÔÉ×ÎÏÍ ÉÚÍÅÎÅÎÉÉ
ÐÏËÁÚÁÔÅÌÑ ÛËÁÌÙ ÐÒÏÉÓÈÏÄÉÔ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÅ ÉÚÍÅÎÅÎÉÅ ÚÎÁÞÅÎÉÑ
ÐÅÒÅÍÅÎÎÏÊ.</p>
<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>). äÌÑ ×ÅÒÔÉËÁÌØÎÏÊ ÛËÁÌÙ ÜÔÏ
ÅÅ ÛÉÒÉÎÁ, ÄÌÑ ÇÏÒÉÚÏÎÔÁÌØÎÏÊ ×ÙÓÏÔÁ.</p>
<h2><a name="ïðéóáîéå"></a>ïðéóáîéå</h2>
<p>ëÏÍÁÎÄÁ <strong>scale</strong> ÓÏÚÄÁÅÔ ÎÏ×ÏÅ
ÏËÎÏ (ÚÁÄÁ×ÁÅÍÏÅ ÁÒÇÕÍÅÎÔÏÍ <em>ÉÍÑðÕÔÉ</em>) É ÐÒÅ×ÒÁÝÁÅÔ ÅÇÏ ×
ÐÒÉÍÉÔÉ× ÌÉÎÅÊÎÏÊ ÛËÁÌÙ. äÅÔÁÌÉ ÉÚÏÂÒÁÖÅÎÉÑ ÛËÁÌÙ, ÔÁËÉÅ ËÁË ÅÅ
Ã×ÅÔÁ, ÏÒÉÅÎÔÁÃÉÑ É ÏÂßÅÍÎÙÊ ×ÉÄ ÚÁÄÁÀÔÓÑ Ó ÐÏÍÏÝØÀ ÏÐÉÓÁÎÎÙÈ
×ÙÛÅ ÄÏÐÏÌÎÉÔÅÌØÎÙÈ ÐÁÒÁÍÅÔÒÏ×. ëÏÍÁÎÄÁ scale ×ÏÚ×ÒÁÝÁÅÔ
ÁÒÇÕÍÅÎÔ <em>ÉÍÑðÕÔÉ</em>. ÷ ÍÏÍÅÎÔ ×ÙÐÏÌÎÅÎÉÑ ÜÔÏÊ ËÏÍÁÎÄÙ ÎÅ
ÄÏÌÖÎÏ ÓÕÝÅÓÔ×Ï×ÁÔØ ÏËÎÁ Ó ÉÍÅÎÅÍ <em>ÉÍÑðÕÔÉ</em>, ÎÏ ÄÏÌÖÅÎ
ÓÕÝÅÓÔ×Ï×ÁÔØ ÅÇÏ ÐÒÅÄÏË.</p>
<p>ûËÁÌÁ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ÐÒÉÍÉÔÉ×, ËÏÔÏÒÙÊ ×Ù×ÏÄÉÔ ÎÁ ÜËÒÁÎ
ÐÒÑÍÏÕÇÏÌØÎÕÀ <em>ÐÏÌÏÓËÕ ÛËÁÌÙ</em> É ÍÁÌÅÎØËÉÊ
<em>Ä×ÉÖÏË</em>. ðÏÌÏÓËÁ ÏÔÏÂÒÁÖÁÅÔ ÉÎÔÅÒ×ÁÌ ×ÅÝÅÓÔ×ÅÎÎÙÈ ÞÉÓÅÌ
(ÏÐÒÅÄÅÌÅÎÎÙÊ ÐÁÒÁÍÅÔÒÁÍÉ <strong>from</strong>,
<strong>to</strong> É <strong>resolution</strong>), Á ÐÏÌÏÖÅÎÉÅ
Ä×ÉÖËÁ ÚÁÄÁÅÔ ÎÅËÏÔÏÒÏÅ ËÏÎËÒÅÔÎÏÅ ÞÉÓÌÏ ÎÁ ÜÔÏÍ
ÉÎÔÅÒ×ÁÌÅ. ðÏÌÏÖÅÎÉÅ Ä×ÉÖËÁ (Á ÚÎÁÞÉÔ, É ÐÏËÁÚÁÔÅÌØ ÛËÁÌÙ) ÍÏÖÎÏ
ÍÅÎÑÔØ Ó ÐÏÍÏÝØÀ &quot;íÙÛÉ&quot; ÉÌÉ ËÌÁ×ÉÁÔÕÒÙ, ËÁË ÏÐÉÓÁÎÏ
ÎÉÖÅ (ÓÍ. &quot;<a href="#ðòé÷ñúëé">ðòé÷ñúëé</a>&quot;). ðÒÉ
ËÁÖÄÏÍ ÉÚÍÅÎÅÎÉÉ ÐÏËÁÚÁÔÅÌÑ ÛËÁÌÙ ÉÓÐÏÌÎÑÅÔÓÑ ËÏÍÁÎÄÁ Tcl
(ÚÁÄÁÎÎÁÑ ÐÁÒÁÍÅÔÒÏÍ command), É ÄÒÕÇÉÅ ÐÒÉÍÉÔÉ×Ù ÐÏÌÕÞÁÀÔ
ÄÏÓÔÕÐ Ë ÒÅÚÕÌØÔÁÔÁÍ ×ÙÐÏÌÎÅÎÎÏÇÏ ÉÚÍÅÎÅÎÉÑ. ëÒÏÍÅ ÔÏÇÏ
ÐÏËÁÚÁÔÅÌØ ÛËÁÌÙ ÍÏÖÎÏ (Ó ÐÏÍÏÝØÀ ÐÁÒÁÍÅÔÒÁ variable) Ó×ÑÚÁÔØ Ó
ÎÅËÏÔÏÒÏÊ ÐÅÒÅÍÅÎÎÏÊ, ÔÁË ÞÔÏ ÉÚÍÅÎÅÎÉÑ ÚÎÁÞÅÎÉÊ ÐÏËÁÚÁÔÅÌÑ ÉÌÉ
ÐÅÒÅÍÅÎÎÏÊ ÎÅÍÅÄÌÅÎÎÏ ÏÔÚÙ×ÁÀÔÓÑ ÄÒÕÇ ÎÁ ÄÒÕÇÅ.</p>
<p>÷ ÐÒÉÍÉÔÉ×Å ÛËÁÌÙ ÍÏÖÎÏ ×Ù×ÅÓÔÉ ÔÁËÖÅ ÔÒÉ ×ÎÅÛÎÉÈ ÁÔÒÉÂÕÔÁ: ÉÍÑ
ÛËÁÌÙ ÓÐÒÁ×Á Ó×ÅÒÈÕ (ÉÌÉ ÓÌÅ×Á Ó×ÅÒÈÕ, ÅÓÌÉ ÛËÁÌÁ
ÇÏÒÉÚÏÎÔÁÌØÎÁ), ÞÉÓÌÏ ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ÓÌÅ×Á ÏÔ Ä×ÉÖËÁ
(ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ Ó×ÅÒÈÕ, ÅÓÌÉ ÛËÁÌÁ ÇÏÒÉÚÏÎÔÁÌØÎÁ) É ÎÁÂÏÒ
ÞÉÓÌÏ×ÙÈ ÍÅÔÏË ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ÓÌÅ×Á ÏÔ ÔÅËÕÝÅÇÏ ÚÎÁÞÅÎÉÑ
(ÎÅÐÏÓÒÅÄÓÔ×ÅÎÎÏ ÓÎÉÚÕ, ÅÓÌÉ ÛËÁÌÁ ÇÏÒÉÚÏÎÔÁÌØÎÁ). ÷Ù×ÏÄ ÌÀÂÏÇÏ
ÉÚ ÜÔÉÈ ÁÔÒÉÂÕÔÏ× ÍÏÖÎÏ ÏÔÍÅÎÉÔØ Ó ÐÏÍÏÝØÀ ÐÁÒÁÍÅÔÒÏ×
ËÏÎÆÉÇÕÒÁÃÉÉ.</p>
<h2><a name="ëïíáîäá_ðòéíéôé÷á"></a>ëïíáîäá ðòéíéôé÷á</h2>
<p>ëÏÍÁÎÄÁ <strong>scale</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>scale</strong>.</dd>
<dt><em>ÉÍÑðÕÔÉ</em> <strong>configure</strong>
?<em>ÐÁÒÁÍÅÔÒ</em>? ?<em>ÚÎÁÞÅÎÉÅ ÐÁÒÁÍÅÔÒ ÚÎÁÞÅÎÉÅ ...</em>?</dt>
<dd>úÁÐÒÁÛÉ×ÁÅÔ ÚÎÁÞÅÎÉÑ ÐÁÒÁÍÅÔÒÏ× ËÏÎÆÉÇÕÒÁÃÉÉ ÐÒÉÍÉÔÉ×Á ÉÌÉ
ÉÚÍÅÎÑÅÔ ÉÈ. åÓÌÉ ÐÁÒÁÍÅÔÒ ÎÅ ÕËÁÚÁÎ, ÔÏ ×ÏÚ×ÒÁÝÁÅÔ ÓÐÉÓÏË,
ÓÏÄÅÒÖÁÝÉÊ ÚÎÁÞÅÎÉÑ ×ÓÅÈ ÄÏÐÕÓÔÉÍÙÈ × <em>ÉÍÅÎÉðÕÔÉ</em>
ÐÁÒÁÍÅÔÒÏ× (ÆÏÒÍÁÔ ÓÐÉÓËÁ ÏÐÉÓÁÎ ×
<strong>Tk_ConfigureInfo</strong>). åÓÌÉ <em>ÐÁÒÁÍÅÔÒ</em>
ÚÁÄÁÎ, Á ÅÇÏ ÎÏ×ÏÅ <em>ÚÎÁÞÅÎÉÅ</em> ÎÅÔ, ÔÏ ËÏÍÁÎÄÁ
×ÏÚ×ÒÁÝÁÅÔ ÞÁÓÔØ ÐÏÌÎÏÇÏ ÓÐÉÓËÁ, ÏÔÎÏÓÑÝÕÀÓÑ Ë ÕËÁÚÁÎÎÏÍÕ
ÐÁÒÁÍÅÔÒÕ. åÓÌÉ ÚÁÄÁÎÙ ÏÄÎÁ ÉÌÉ ÎÅÓËÏÌØËÏ ÐÁÒ
ÐÁÒÁÍÅÔÒ-ÚÎÁÞÅÎÉÅ, ÔÏ ÕËÁÚÁÎÎÙÍ ÐÁÒÁÍÅÔÒÁÍ ÐÒÉÍÉÔÉ×Á
ÐÒÉÓ×ÁÉ×ÁÀÔÓÑ ÎÏ×ÙÅ ÚÎÁÞÅÎÉÑ, Á ËÏÍÁÎÄÁ ×ÏÚ×ÒÁÝÁÅÔ ÐÕÓÔÕÀ
ÓÔÒÏËÕ. ðÁÒÁÍÅÔÒ ÍÏÖÅÔ ÂÙÔØ ÌÀÂÙÍ ÉÚ ÐÁÒÁÍÅÔÒÏ×
ËÏÍÁÎÄÙ<strong>scale</strong>.</dd>
<dt><em>ÉÍÑðÕÔÉ</em> <strong>coords</strong> ?<em>ÚÎÁÞÅÎÉÅ</em>?</dt>
<dd>÷ÏÚ×ÒÁÝÁÅÔ ÓÐÉÓÏË, ÜÌÅÍÅÎÔÁÍÉ ËÏÔÏÒÏÇÏ Ñ×ÌÑÀÔÓÑ x É y
ËÏÏÒÄÉÎÁÔÙ ÔÏÞËÉ ÐÏÓÅÒÅÄÉÎÅ ÐÏÌÏÓÙ ÛËÁÌÙ, ÏÔ×ÅÞÁÀÝÅÊ
ÕËÁÚÁÎÎÏÍÕ ÚÎÁÞÅÎÉÀ. åÓÌÉ ÁÒÇÕÍÅÎÔ <em>ÚÎÁÞÅÎÉÅ</em> ÏÐÕÝÅÎ,
ÔÏ ×ÏÚ×ÒÁÝÁÀÔÓÑ ËÏÏÒÄÉÎÁÔÙ ÔÏÞËÉ, ÏÔ×ÅÞÁÀÝÅÊ ÔÅËÕÝÅÍÕ
ÐÏËÁÚÁÔÅÌÀ ÛËÁÌÙ.</dd>
<dt><em>ÉÍÑðÕÔÉ</em> <strong>get</strong> ?<em>x y</em>?</dt>
<dd>åÓÌÉ ÁÒÇÕÍÅÎÔÙ <em>x</em> É <em>y</em> ÏÐÕÝÅÎÙ, ÔÏ
×ÏÚ×ÒÁÝÁÅÔ ÔÅËÕÝÉÊ ÐÏËÁÚÁÔÅÌØ ÛËÁÌÙ. åÓÌÉ ÏÎÉ ÚÁÄÁÎÙ, ÔÏ ÏÎÉ
ÏÐÒÅÄÅÌÑÀÔ ËÏÏÒÄÉÎÁÔÙ ÔÏÞËÉ × ÐÒÉÍÉÔÉ×Å; × ÜÔÏÍ ÓÌÕÞÁÅ ËÏÍÁÎÄÁ
×ÏÚ×ÒÁÝÁÅÔ ÚÎÁÞÅÎÉÅ ÐÏËÁÚÁÔÅÌÑ ÛËÁÌÙ, ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÇÏ
ÕËÁÚÁÎÎÏÊ ÔÏÞËÅ. ðÒÉ ÜÔÏÍ ÉÓÐÏÌØÚÕÅÔÓÑ ÔÏÌØËÏ ÏÄÎÁ ÉÚ
ËÏÏÒÄÉÎÁÔ: x ÄÌÑ ÇÏÒÉÚÏÎÔÁÌØÎÏÊ ÛËÁÌÙ É y ÄÌÑ
×ÅÒÔÉËÁÌØÎÏÊ.</dd>
<dt><em>ÉÍÑðÕÔÉ</em> <strong>identify</strong> <em>x y</em></dt>
<dd>÷ÏÚ×ÒÁÝÁÅÔ ÔÅËÓÔÏ×ÕÀ ÓÔÒÏËÕ, ÕËÁÚÙ×ÁÀÝÕÀ, ËÁËÁÑ ÞÁÓÔØ ÛËÁÌÙ
ÒÁÓÐÏÌÏÖÅÎÁ × ÔÏÞËÅ Ó ËÏÏÒÄÉÎÁÔÁÍÉ <em>x</em> É
<em>y</em>. ÷ÏÚ×ÒÁÝÁÅÍÏÅ ÚÎÁÞÅÎÉÅ <strong>slider</strong>
ÏÚÎÁÞÁÅÔ, ÞÔÏ ÜÔÏ ÔÏÞËÁ ÎÁ Ä×ÉÖËÅ; <strong>trough1</strong>
ÏÚÎÁÞÁÅÔ, ÞÔÏ ÔÏÞËÁ ÎÁÈÏÄÉÔÓÑ ×ÙÛÅ ÉÌÉ ÌÅ×ÅÅ Ä×ÉÖËÁ;
<strong>trough2</strong>ÏÚÎÁÞÁÅÔ, ÞÔÏ ÔÏÞËÁ ÎÁÈÏÄÉÔÓÑ ÎÉÖÅ ÉÌÉ
ÐÒÁ×ÅÅ Ä×ÉÖËÁ. åÓÌÉ ÔÏÞËÁ ÒÁÓÐÏÌÏÖÅÎÁ ×ÎÅ ÛËÁÌÙ, ÔÏ ËÏÍÁÎÄÁ
×ÏÚ×ÒÁÝÁÅÔ ÐÕÓÔÕÀ ÓÔÒÏËÕ.</dd>
<dt><em>ÉÍÑðÕÔÉ</em> <strong>set</strong> <em>ÚÎÁÞÅÎÉÅ</em></dt>
<dd>üÔÁ ËÏÍÁÎÄÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÄÌÑ ÉÚÍÅÎÅÎÉÑ ÔÅËÕÝÅÇÏ ÐÏËÁÚÁÔÅÌÑ
ÛËÁÌÙ, Á ÚÎÁÞÉÔ, É ÐÏÌÏÖÅÎÉÑ Ä×ÉÖËÁ. áÒÇÕÍÅÎÔ
<em>ÚÎÁÞÅÎÉÅ</em>ÚÁÄÁÅÔ ÎÏ×ÏÅ ÚÎÁÞÅÎÉÅ ÐÏËÁÚÁÔÅÌÑ. åÓÌÉ ÛËÁÌÁ
ÎÅÄÏÓÔÕÐÎÁ, ÔÏ ËÏÍÁÎÄÁ ÎÅ ÐÒÉ×ÏÄÉÔ ÎÉ Ë ËÁËÉÍ
ÒÅÚÕÌØÔÁÔÁÍ.</dd>
</dl>
<h2><a name="ðòé÷ñúëé"></a>ðòé÷ñúëé</h2>
<p>ðÒÉ ÓÏÚÄÁÎÉÉ ÌÉÎÅÊÎÏÊ ÛËÁÌÙ Tk Á×ÔÏÍÁÔÉÞÅÓËÉ ÓÏÚÄÁÅÔ ÐÒÉ×ÑÚËÉ
ËÌÁÓÓÁ, ÏÐÒÅÄÅÌÑÀÝÉÅ ÓÌÅÄÕÀÝÅÅ ÐÏ×ÅÄÅÎÉÅ ÐÒÉÍÉÔÉ×Á ÐÏ
ÕÍÏÌÞÁÎÉÀ. ÷ ÓÌÕÞÁÅ, ÅÓÌÉ ÉÍÅÀÔÓÑ ÒÁÚÌÉÞÉÑ × ÐÏ×ÅÄÅÎÉÉ
×ÅÒÔÉËÁÌØÎÏÊ É ÇÏÒÉÚÏÎÔÁÌØÎÏÊ ÛËÁÌÙ, ÏÐÉÓÁÎÉÅ ÐÏ×ÅÄÅÎÉÑ
ÇÏÒÉÚÏÎÔÁÌØÎÏÊ ÐÒÉ×ÏÄÉÔÓÑ × ÓËÏÂËÁÈ.</p>
<p>ðÒÉ ÎÁÖÁÔÉÉ ËÌÁ×ÉÛÉ 1 &quot;íÙÛÉ&quot; ÎÁ ÐÏÌÏÓÅ ÛËÁÌÙ Ä×ÉÖÏË
ÓÄ×ÉÇÁÅÔÓÑ × ÎÁÐÒÁ×ÌÅÎÉÉ ËÕÒÓÏÒÁ ÎÁ ×ÅÌÉÞÉÎÕ, ÚÁÄÁÎÎÕÀ
ÐÁÒÁÍÅÔÒÏÍ <strong>resolution</strong>. åÓÌÉ ËÌÁ×ÉÛÕ ÎÅ
ÏÔÐÕÓËÁÔØ, ÔÏ ÓÄ×ÉÇ Á×ÔÏÍÁÔÉÞÅÓËÉ ÐÏ×ÔÏÒÑÅÔÓÑ.</p>
<p>åÓÌÉ ÎÁÖÁÔØ ËÌÁ×ÉÛÕ 1 ÎÁ Ä×ÉÖËÅ, ÔÏ Ä×ÉÖÏË ÍÏÖÎÏ ÔÁÝÉÔØ.</p>
<p>åÓÌÉ ÎÁÖÁÔØ ËÌÁ×ÉÛÕ 1 ÎÁ ÐÏÌÏÓÅ ÛËÁÌÙ ÐÒÉ ÎÁÖÁÔÏÊ ËÌÁ×ÉÛÅ
<strong>Control</strong>. ÔÏ Ä×ÉÖÏË ÐÒÏÂÅÖÉÔ ÄÏ ËÏÎÃÁ ÐÏÌÏÓÙ ×
ÎÁÐÒÁ×ÌÅÎÉÉ ËÕÒÓÏÒÁ &quot;íÙÛÉ&quot;.</p>
<p>åÓÌÉ ÎÁÖÁÔØ ËÌÁ×ÉÛÕ 2, ÔÏ ÐÏËÁÚÁÔÅÌØ ÛËÁÌÙ ÂÕÄÅÔ ÕÓÔÁÎÏ×ÌÅÎ ×
ÐÏÌÏÖÅÎÉÅ ËÕÒÓÏÒÁ &quot;íÙÛÉ&quot;. åÓÌÉ ÔÁÝÉÔØ &quot;íÙÛØ&quot;
Ó ÎÁÖÁÔÏÊ ËÌÁ×ÉÛÅÊ 2, ÔÏ ÐÏËÁÚÁÔÅÌØ ÛËÁÌÙ ÂÕÄÅÔ ÓÏÏÔ×ÅÔÓÔ×ÅÎÎÏ
ÍÅÎÑÔØÓÑ.</p>
<p>îÁÖÁÔÉÅ ÎÁ ËÌÁ×ÉÛÉ <strong>Up</strong> É <strong>Left</strong>
ÐÒÉ×ÏÄÉÔ Ë ÐÅÒÅÍÅÝÅÎÉÀ Ä×ÉÖËÁ ××ÅÒÈ (×ÌÅ×Ï) ÎÁ ×ÅÌÉÞÉÎÕ,
ÕËÁÚÁÎÎÕÀ ÐÁÒÁÍÅÔÒÏÍ<strong>resolution</strong>.</p>
<p>îÁÖÁÔÉÅ ÎÁ ËÌÁ×ÉÛÉ <strong>Down</strong> É
<strong>Right</strong> ÐÒÉ×ÏÄÉÔ Ë ÐÅÒÅÍÅÝÅÎÉÀ Ä×ÉÖËÁ ×ÎÉÚ
(×ÐÒÁ×Ï) ÎÁ ×ÅÌÉÞÉÎÕ, ÕËÁÚÁÎÎÕÀ ÐÁÒÁÍÅÔÒÏÍ
<strong>resolution</strong>.</p>
<p>îÁÖÁÔÉÅ ÎÁ ËÌÁ×ÉÛÉ <strong>Control-Up</strong> É
<strong>Control-Left</strong> ÐÒÉ×ÏÄÉÔ Ë ÐÅÒÅÍÅÝÅÎÉÀ Ä×ÉÖËÁ
××ÅÒÈ (×ÌÅ×Ï) ÎÁ ×ÅÌÉÞÉÎÕ, ÕËÁÚÁÎÎÕÀ ÐÁÒÁÍÅÔÒÏÍ
<strong>bigIncrement</strong>.</p>
<p>îÁÖÁÔÉÅ ÎÁ ËÌÁ×ÉÛÉ <strong>Control-Down</strong> É
<strong>Control-Right</strong> ÐÒÉ×ÏÄÉÔ Ë ÐÅÒÅÍÅÝÅÎÉÀ Ä×ÉÖËÁ
×ÎÉÚ (×ÐÒÁ×Ï) ÎÁ ×ÅÌÉÞÉÎÕ, ÕËÁÚÁÎÎÕÀ ÐÁÒÁÍÅÔÒÏÍ
<strong>bigIncrement</strong>.</p>
<p>îÁÖÁÔÉÅ ÎÁ ËÌÁ×ÉÛÕ <strong>Home</strong> ÐÒÉ×ÏÄÉÔ Ë ÐÅÒÅÍÅÝÅÎÉÀ
Ä×ÉÖËÁ ××ÅÒÈ (×ÌÅ×Ï) ÄÏ ËÏÎÃÁ ÐÏÌÏÓÙ.</p>
<p>îÁÖÁÔÉÅ ÎÁ ËÌÁ×ÉÛÕ <strong>End</strong> ÐÒÉ×ÏÄÉÔ Ë ÐÅÒÅÍÅÝÅÎÉÀ
Ä×ÉÖËÁ ×ÎÉÚ (×ÐÒÁ×Ï) ÄÏ ËÏÎÃÁ ÐÏÌÏÓÙ.</p>
<p>åÓÌÉ ÛËÁÌÁ ÓÄÅÌÁÎÁ ÎÅÄÏÓÔÕÐÎÏÊ Ó ÐÏÍÏÝØÀ ÐÁÒÁÍÅÔÒÁ
<strong>state</strong>, ÔÏ ÎÉ ÏÄÎÁ ÉÚ ÏÐÉÓÁÎÎÙÈ ×ÙÛÅ ÐÒÉ×ÑÚÏË ÎÅ
ÏËÁÚÙ×ÁÅÔ ËÁËÏÇÏ-ÌÉÂÏ ÄÅÊÓÔ×ÉÑ.</p>
<p>ïÐÒÅÄÅÌÑÑ ÎÏ×ÙÅ ÐÒÉ×ÑÚËÉ Ë ÏÔÄÅÌØÎÙÍ ÐÒÉÍÉÔÉ×ÁÍ ÉÌÉ
ÐÅÒÅÏÐÒÅÄÅÌÑÑ ÐÒÉ×ÑÚËÉ ËÌÁÓÓÁ, ÐÏ×ÅÄÅÎÉÅ ÌÉÎÅÊÎÏÊ ÛËÁÌÙ ÍÏÖÎÏ
ÉÚÍÅÎÉÔØ.</p>
</body>
</html>