home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
cbfontchoo.tcl
< prev
next >
Wrap
Text File
|
1996-09-23
|
1KB
|
51 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)cbfontchoo.tcl /main/titanic/2
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)cbfontchoo.tcl /main/titanic/2 23 Sep 1996 Copyright 1994 Westmount Technology
# Start user added include file section
# End user added include file section
Class CBFontChooser : {FontChooser} {
constructor
method destructor
method handleOkPressed
}
constructor CBFontChooser {class this name} {
set this [FontChooser::constructor $class $this $name]
# Start constructor user section
set M4_font__classbrowser [m4_var get M4_font -context classbrowser]
$this config -title "Class Browser Font" \
-value "$M4_font__classbrowser" \
-okPressed "%this handleOkPressed"
$this delHelpButton
# End constructor user section
return $this
}
method CBFontChooser::destructor {this} {
# Start destructor user section
# End destructor user section
}
method CBFontChooser::handleOkPressed {this} {
if {[m4_var get M4_font -context classbrowser] == [$this value]} {
return
}
if {[catch {m4_var set M4_font [$this value] -context classbrowser}]} {
wmtkerror "Unable to set Class Browser Font"
return
}
$classBrowser setFont [$this value]
}
# Do not delete this line -- regeneration end marker