home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
reptoolfon.tcl
< prev
next >
Wrap
Text File
|
1996-09-16
|
1KB
|
55 lines
#---------------------------------------------------------------------------
#
# (c) Cayenne Software Inc. 1996
#
# File: %W%
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = %W% %G% Copyright 1996 Cayenne Software Inc.
# Start user added include file section
# End user added include file section
Class RepToolFontChooser : {FontChooser} {
constructor
method destructor
method ok
attribute tool
}
constructor RepToolFontChooser {class this name tool} {
set this [FontChooser::constructor $class $this $name]
$this tool $tool
# Start constructor user section
$this config \
-title "[$tool iconTitle] Font" \
-value [$tool getFont] \
-okPressed "%this ok"
$this delHelpButton
# End constructor user section
return $this
}
method RepToolFontChooser::destructor {this} {
# Start destructor user section
# End destructor user section
}
method RepToolFontChooser::ok {this} {
set tool [$this tool]
set newFont [$this value]
set oldFont [$tool getFont]
if {$newFont != $oldFont} {
$tool setFont $newFont
}
}
# Do not delete this line -- regeneration end marker