home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
komix
/
DATA.Z
/
griddialog.tcl
< prev
next >
Wrap
Text File
|
1996-08-22
|
2KB
|
69 lines
#---------------------------------------------------------------------------
#
# (c) Westmount Technology 1994
#
# File: @(#)griddialog.tcl /main/hindenburg/1
# Author: <generated>
# Description:
#---------------------------------------------------------------------------
# SccsId = @(#)griddialog.tcl /main/hindenburg/1 22 Aug 1996 Copyright 1994 Westmount Technology
# Start user added include file section
# End user added include file section
Class GridDialog : {TemplateDialog} {
constructor
method destructor
method popUp
method updateArea
attribute area
}
constructor GridDialog {class this name} {
set this [TemplateDialog::constructor $class $this $name]
# Start constructor user section
$this title Grid
interface DlgColumn $this.c {
DlgRow r {
Label lab {
text "Grid size:"
}
OptionMenu size {
entrySet {1 2 4 8 16 32 64}
selected 16
}
}
}
$this config -modal yes -okPressed {%this updateArea} \
-helpPressed {.main helpOnName grid}
# End constructor user section
return $this
}
method GridDialog::destructor {this} {
# Start destructor user section
# End destructor user section
}
method GridDialog::popUp {this} {
set area [$this area]
$this.c.r.size selected [$area gridSize]
$this TemplateDialog::popUp
}
method GridDialog::updateArea {this} {
set area [$this area]
$area gridSize [$this.c.r.size selected]
if {[m4_var get M4_grid_delta] != [$area gridSize]} {
m4_var set M4_grid_delta [$area gridSize]
}
}
# Do not delete this line -- regeneration end marker