home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 December
/
PCWorld_2000-12_cd.bin
/
Komunikace
/
Comanche
/
xuibuilder
/
xuiNumberCreator.tcl
< prev
next >
Wrap
Text File
|
2000-11-02
|
594b
|
24 lines
class numberCreator {
inherit stringCreator
method createObject {token xuiBuilder}
method extraStuff
}
body numberCreator::createObject {token xuiBuilder} {
if [string length [set parentName [$xuiBuilder cget -currentParentName]]] {
set name $parentName.[dom::getAttribute $token name]
} else {
set name ::#auto
}
return [xuiNumber $name]
}
body numberCreator::extraStuff {token object xuiBuilder} {
if [llength [set w [dom::getAttribute $token width]]] {
$object setWidth $w
}
}