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

91 lines
3.8 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>tk_bisque, tk_setPalette</title>
</head>
<body>
<h1>tk_bisque, tk_setPalette</h1>
<p>íÏÄÉÆÉÃÉÒÕÅÔ Ã×ÅÔÏ×ÕÀ ÐÁÌÉÔÒÕ Tk.</p>
<h2><a name="óéîôáëóéó"></a>óéîôáëóéó</h2>
<pre>
<strong>tk_setPalette</strong> <em>ÆÏÎ</em>
<strong>tk_setPalette</strong> <em>ÉÍÑ ÚÎÁÞÅÎÉÅ</em> ?<em>ÉÍÑ ÚÎÁÞÅÎÉÅ ...</em>
<strong>tk_bisque</strong>
</pre>
<h2><a name="ïðéóáîéå"></a>ïðéóáîéå</h2>
<p>ðÒÏÃÅÄÕÒÁ <strong>tk_setPalette</strong> ÉÚÍÅÎÑÅÔ Ã×ÅÔÏ×ÕÀ
ÓÈÅÍÕ Tk. üÔÏ ÐÒÏÉÓÈÏÄÉÔ ÚÁ ÓÞÅÔ ÉÚÍÅÎÅÎÉÑ Ã×ÅÔÏ× × ÓÕÝÅÓÔ×ÕÀÝÉÈ
ÐÒÉÍÉÔÉ×ÁÈ É ×ÎÅÓÅÎÉÑ ÉÚÍÅÎÅÎÉÊ × ÂÁÚÕ ÄÁÎÎÙÈ ÐÁÒÁÍÅÔÒÏ×, ×
ÒÅÚÕÌØÔÁÔÅ ÞÅÇÏ ÂÕÄÕÝÉÅ ÐÒÉÍÉÔÉ×Ù ÂÕÄÕÔ ÐÏÌØÚÏ×ÁÔØÓÑ ÎÏ×ÏÊ
Ã×ÅÔÏ×ÏÊ ÓÈÅÍÏÊ. ðÒÉ ×ÙÐÏÌÎÅÎÉÉ ËÏÍÁÎÄÙ
<strong>tk_setPalette</strong> Ó ÅÄÉÎÓÔ×ÅÎÎÙÍ ÁÒÇÕÍÅÎÔÏÍ, ÜÔÉÍ
ÁÒÇÕÍÅÎÔÏÍ Ñ×ÌÑÅÔÓÑ ÉÍÑ Ã×ÅÔÁ, ËÏÔÏÒÙÊ ÓÔÁÎÏ×ÉÔÓÑ ÎÏÒÍÁÌØÎÙÍ
Ã×ÅÔÏÍ ÆÏÎÁ; ÐÒÏÃÅÄÕÒÁ <strong>tk_setPalette</strong> ×ÙÞÉÓÌÑÅÔ
×ÓÀ ÐÁÌÉÔÒÕ Ã×ÅÔÏ× ÎÁ ÏÓÎÏ×Å ÜÔÏÇÏ Ã×ÅÔÁ ÆÏÎÁ. åÓÌÉ ÖÅ ÁÒÇÕÍÅÎÔÙ
ËÏÍÁÎÄÙ <strong>tk_setPalette</strong> ×ËÌÀÞÁÀÔ ÎÅÓËÏÌØËÏ ÐÁÒ
<em>ÉÍÑ-ÚÎÁÞÅÎÉÅ</em>, ÔÏ ÉÍÑ ÜÔÏ ÉÍÑ ÐÁÒÁÍÅÔÒÁ, Á ×ÔÏÒÏÊ
ÜÌÅÍÅÎÔ ÐÁÒÙ ÐÒÅÄÓÔÁ×ÌÑÅÔ ÓÏÂÏÊ ÎÏ×ÏÅ ÚÎÁÞÅÎÉÅ ÐÁÒÁÍÅÔÒÁ. ÷
ÎÁÓÔÏÑÝÅÅ ×ÒÅÍÑ ÐÏÄÄÅÒÖÉ×ÁÀÔÓÑ ÓÌÅÄÕÀÝÉÅ ÉÍÅÎÁ ÐÁÒÁÍÅÔÒÏ× × ÂÁÚÅ
ÄÁÎÎÙÈ:</p>
<ul>
<li><strong>activeBackground</strong></li>
<li><strong>activeForeground</strong></li>
<li><strong>background</strong></li>
<li><strong>disabledForeground</strong></li>
<li><strong>foreground</strong></li>
<li><strong>highlightBackground</strong></li>
<li><strong>highlightColor</strong></li>
<li><strong>insertBackground</strong></li>
<li><strong>selectBackground</strong></li>
<li><strong>selectColor</strong></li>
<li><strong>selectForeground</strong></li>
<li><strong>troughColor</strong></li>
</ul>
<p>ðÒÏÃÅÄÕÒÁ <strong>tk_setPalette</strong> ÐÙÔÁÅÔÓÑ ×ÙÞÉÓÌÉÔØ
ÒÁÚÕÍÎÙÅ ÚÎÁÞÅÎÉÑ ÐÏ ÕÍÏÌÞÁÎÉÀ ÄÌÑ ÌÀÂÏÇÏ ÎÅÚÁÄÁÎÎÏÇÏ
ÐÁÒÁÍÅÔÒÁ. íÏÖÎÏ ÕËÁÚÁÔØ É ÐÁÒÁÍÅÔÒÙ, ÏÔÌÉÞÎÙÅ ÏÔ ÐÒÉ×ÅÄÅÎÎÙÈ
×ÙÛÅ, É Tk ÉÚÍÅÎÉÔ ÚÎÁÞÅÎÉÑ É ÜÔÉÈ ÐÁÒÁÍÅÔÒÏ×. ôÁËÁÑ ×ÏÚÍÏÖÎÏÓÔØ
ÐÏÌÅÚÎÁ ÐÒÉ ÉÓÐÏÌØÚÏ×ÁÎÉÉ ÓÐÅÃÉÁÌØÎÙÈ ÐÒÉÍÉÔÉ×Ï× Ó
ÄÏÐÏÌÎÉÔÅÌØÎÙÍÉ Ã×ÅÔÏ×ÙÍÉ ÐÁÒÁÍÅÔÒÁÍÉ.</p>
<p>ðÏÓÌÅ ÔÏÇÏ, ËÁË ÎÏ×ÏÅ ÚÎÁÞÅÎÉÅ ËÁÖÄÏÇÏ ÉÚ Ã×ÅÔÏ×ÙÈ ÐÁÒÁÍÅÔÒÏ×
×ÙÞÉÓÌÅÎÏ, <strong>tk_setPalette</strong> ÐÒÏÓÍÁÔÒÉ×ÁÅÔ ÉÅÒÁÒÈÉÀ
ÐÒÉÍÉÔÉ×Ï×, ÞÔÏÂÙ ÉÚÍÅÎÉÔØ ÚÎÁÞÅÎÉÑ ÐÁÒÁÍÅÔÒÏ× ×ÓÅÈ ÓÕÝÅÓÔ×ÕÀÝÉÈ
ÐÒÉÍÉÔÉ×Ï×. äÌÑ ËÁÖÄÏÇÏ ÐÒÉÍÉÔÉ×Á ÏÎÁ ÐÒÏ×ÅÒÑÅÔ, ÏÐÒÅÄÅÌÅÎ ÌÉ
ÄÌÑ ÎÅÇÏ ËÁËÏÊ-ÌÉÂÏ ÉÚ ÚÁÄÁÎÎÙÈ ÐÁÒÁÍÅÔÒÏ×. åÓÌÉ ÜÔÏ ÔÁË É ÅÓÌÉ
ÔÅËÕÝÅÅ ÚÎÁÞÅÎÉÅ ÐÁÒÁÍÅÔÒÁ ÓÏ×ÐÁÄÁÅÔ ÓÏ ÚÎÁÞÅÎÉÅÍ ÐÏ ÕÍÏÌÞÁÎÉÀ,
ÔÏ ÜÔÏ ÚÎÁÞÅÎÉÅ ÚÁÍÅÎÑÅÔÓÑ ÎÏ×ÙÍ; ÅÓÌÉ ÖÅ ÔÅËÕÝÅÅ ÚÎÁÞÅÎÉÅ
ÏÔÌÉÞÎÏ ÏÔ ÚÎÁÞÅÎÉÑ ÐÏ ÕÍÏÌÞÁÎÉÀ, ÔÏ
<strong>tk_setPalette</strong> ÎÅ ÉÚÍÅÎÑÅÔ ÅÇÏ. úÎÁÞÅÎÉÅÍ
ÐÁÒÁÍÅÔÒÁ ÐÏ ÕÍÏÌÞÁÎÉÀ Ñ×ÌÑÅÔÓÑ ÔÏ, ËÏÔÏÒÏÅ ÐÏÒÏÖÄÅÎÏ ÐÒÉÍÉÔÉ×ÏÍ
<strong>([lindex [$w configure $option] 3])</strong> ÉÌÉ, ÅÓÌÉ
ÐÒÏÃÅÄÕÒÁ <strong>tk_setPalette</strong> ×ÙÐÏÌÎÑÌÁÓØ É ÒÁÎØÛÅ,
ÔÏ ÚÎÁÞÅÎÉÅ, ÕÓÔÁÎÏ×ÌÅÎÎÏÅ ÅÅ ÐÒÅÄÙÄÕÝÉÍ ×ÙÐÏÌÎÅÎÉÅÍ.</p>
<p>ðÏÓÌÅ ÍÏÄÉÆÉËÁÃÉÉ ×ÓÅÈ ÐÒÉÍÉÔÉ×Ï× × ÐÒÉÌÏÖÅÎÉÉ
<strong>tk_setPalette</strong> ÄÏÂÁ×ÌÑÅÔ ÐÁÒÁÍÅÔÒÙ × ÂÁÚÕ ÄÁÎÎÙÈ
ÐÁÒÁÍÅÔÒÏ×, ÉÚÍÅÎÑÑ ÚÎÁÞÅÎÉÑ ÐÏ ÕÍÏÌÞÁÎÉÀ ÄÌÑ ÂÕÄÕÝÉÈ
ÐÒÉÍÉÔÉ×Ï×. îÏ×ÙÅ ÐÁÒÁÍÅÔÒÙ ÄÏÂÁ×ÌÑÀÔÓÑ Ó ÐÒÉÏÒÉÔÅÔÏÍ
widgetDefault, ÐÏÜÔÏÍÕ ÏÎÉ ÂÕÄÕÔ ÐÏÄÁ×ÌÅÎÙ ÐÁÒÁÍÅÔÒÁÍÉ ÉÚ ÆÁÊÌÁ
<strong>.Xdefaults</strong> ÉÌÉ ÐÁÒÁÍÅÔÒÁÍÉ, ÚÁÄÁÎÎÙÍÉ ×
ËÏÍÁÎÄÎÏÊ ÓÔÒÏËÅ, ÓÏÚÄÁÀÝÅÊ ÐÒÉÍÉÔÉ×.</p>
<p>ðÒÏÃÅÄÕÒÁ <strong>tk_bisque</strong> ÏÂÅÓÐÅÞÉ×ÁÅÔ ÓÏ×ÍÅÓÔÉÍÏÓÔØ
Ó ÐÒÅÄÙÄÕÝÉÍÉ ×ÅÒÓÉÑÍÉ: ÏÎÁ ÚÁÄÁÅÔ ÓÈÅÍÕ &quot;bisque&quot; ÎÁ
ÏÓÎÏ×Å Ó×ÅÔÌÏ-ËÏÒÉÞÎÅ×ÏÇÏ (ÂÉÓË×ÉÔÎÏÇÏ) Ã×ÅÔÁ, ËÏÔÏÒÁÑ
ÉÓÐÏÌØÚÏ×ÁÌÁÓØ × Tk 3.6 É ÂÏÌÅÅ ÒÁÎÎÉÈ ×ÅÒÓÉÑÈ.</p>
</body>
</html>