home *** CD-ROM | disk | FTP | other *** search
- #---------------------------------------------------------------------------
- #
- # (c) Cayenne Software Inc. 1997
- #
- # File: @(#)stepcolumn.tcl /main/titanic/6
- # Author: <generated>
- # Description:
- #---------------------------------------------------------------------------
- # SccsId = @(#)stepcolumn.tcl /main/titanic/6 24 Sep 1997 Copyright 1997 Cayenne Software Inc.
-
- # Start user added include file section
- # End user added include file section
-
-
- Class StepColumn : {DlgColumn} {
- constructor
- method destructor
- method addStep
- }
-
- constructor StepColumn {class this name} {
- set this [DlgColumn::constructor $class $this $name]
- # Start constructor user section
- $this verStretchFactor 0
- # End constructor user section
- return $this
- }
-
- method StepColumn::destructor {this} {
- # Start destructor user section
- # End destructor user section
- }
-
- method StepColumn::addStep {this title button description activated} {
- set count [expr [llength [$this childSet]] + 1]
-
- set step $this.step$count
-
- interface DlgColumn $step {
- DlgRow title {
- spaceType NONE
- Label title {
- horStretchFactor 0
- text ""
- }
- Label glue {
- horStretchFactor 100
- }
- }
- DlgColumn desc {
- spaceType NONE
- horStretchFactor 100
- }
- DlgRow button {
- verStretchFactor 0
- Label glue {
- horStretchFactor 30
- verStretchFactor 0
- }
- PushButton button {
- horStretchFactor 40
- verStretchFactor 0
- label ""
- }
- Label glue {
- horStretchFactor 30
- verStretchFactor 0
- }
- }
- }
-
- # Motif's Label object can handle texts with embedded eolns,
- # but the Window's one can't.
- #
- if $win95 {
- $step.title.title text " ${count}. $title "
- $step.title.title font "Times New Roman-bold_italics-16-0"
- set i 0
- foreach line [split $description \n] {
- Label new $step.desc.description$i \
- -text " $line " \
- -horStretchFactor 0
- incr i
- }
- } else {
- $step.title.title text "${count}. $title"
- Label new $step.desc.description \
- -text "$description" \
- -horStretchFactor 0
- $step.desc.description font "times-normal-14"
- }
-
- $step.button.button label $button
- $step.button.button activated $activated
-
- return $step
- }
-
- # Do not delete this line -- regeneration end marker
-
-