🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.tcl
Article #174

Re: IncrTk

#174
From: Wojciech Kocjan
Date: Wed, 31 Aug 2005 07:08
26 lines
1756 bytes
Googie napisał(a):
> Czytałem manuala, ale jakoś nie mogę go zrozumieć.
> 
> O co chodzi z komendą [itk::usual]? Do czego ona w ogóle jest potrzebna?

Chodzi o dziedziczenie parametrów. Możesz np zrobić:

itk_component add xx {
    entry xx
} {
    keep -background -cursor -foreground -font
    keep -insertbackground -insertborderwidth -insertwidth
    keep -insertontime -insertofftime
    keep -selectbackground -selectborderwidth -selectforeground
    keep -highlightcolor -highlightthickness
    rename -highlightbackground -background background Background
}

Wtedy te parametry będzie można zmieniać za pomocą configure megawidgetu.

Zamiast za każdym razem wpisywać te parametry jeśli robisz megawidget
oparty o entry (np popup) to lepiej żeby gdzieś było zdefiniowane takie
coś dla np entry. I jest - w itk.tcl.

-- 
WK
Technical Details
Message-ID: <df3l14$sms$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <df1kmn$bik$1@srv.cyf-kr.edu.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.tpinternet.pl!nemesis.news.tpi.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: Wojciech Kocjan <mojeimie@kocjan.org>
Newsgroups: pl.comp.lang.tcl
Subject: Re: IncrTk
Date: Wed, 31 Aug 2005 09:08:16 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 26
Message-ID: <df3l14$sms$1@atlantis.news.tpi.pl>
References: <df1kmn$bik$1@srv.cyf-kr.edu.pl>
NNTP-Posting-Host: dq2.dataquest.pl
Mime-Version: 1.0
X-Trace: atlantis.news.tpi.pl 1125472101 29404 195.116.54.236 (31 Aug 2005 07:08:21 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Wed, 31 Aug 2005 07:08:21 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: pl, en-us, en
In-Reply-To: <df1kmn$bik$1@srv.cyf-kr.edu.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit