🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.tcl
2 messages
2 total messages Started by Googie Tue, 30 Aug 2005 12:53
IncrTk
#173
Author: Googie
Date: Tue, 30 Aug 2005 12:53
7 lines
895 bytes
Czytałem manuala, ale jakoś nie mogę go zrozumieć.

O co chodzi z komendą [itk::usual]? Do czego ona w ogóle jest potrzebna?

-- 
Pozdrawiam!
Googie
Re: IncrTk
#174
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads