D
David
Guest
The following snippet is used to generate a list of boolean buttons that
will be used to select what Level 0 text will be used to generate hierarchial
power plots.
Everything seems to run okay except that only the first boolean button in
the list shows up in the Form.
Anyone know what I am doing wrong here?
TIA,
David
.
.
.
/***** Create Fields for AppForm *****/
loopCntr = 1
xCrd = 20
yCrd = 90
foreach( labelItem labelList
printf( "%d %s\n", loopCntr labelItem )
if( loopCntr == 1
then
toggleList = list( hiCreateBooleanButton(
?name concat( strcat( "ppBool" labelItem ) )
?buttonText labelItem
?callback "boolCallBack()"
?defValue t
) xCrd:yCrd 100:80 80 )
else
myBoolList = list( hiCreateBooleanButton(
?name concat( strcat( "ppBool" labelItem ) )
?buttonText labelItem
?callback "boolCallBack()"
?defValue t
) xCrd:yCrd 100:80 80 )
toggleList = append( toggleList myBoolList )
) ;;; end if
loopCntr++
yCrd = yCrd+30
) ;;; end foreach
hiCreateAppForm(
?name 'BP_configForm
?formTitle "Batch Plot"
?callback list( "BPJnk1()" "BPJnk2()" )
?unmapAfterCB t
?buttonLayout 'OKCancelApply
?help ""
?fields list( toggleList )
) ;;; end hiCreateAppForm
hiDisplayForm( BP_configForm )
.
.
.
will be used to select what Level 0 text will be used to generate hierarchial
power plots.
Everything seems to run okay except that only the first boolean button in
the list shows up in the Form.
Anyone know what I am doing wrong here?
TIA,
David
.
.
.
/***** Create Fields for AppForm *****/
loopCntr = 1
xCrd = 20
yCrd = 90
foreach( labelItem labelList
printf( "%d %s\n", loopCntr labelItem )
if( loopCntr == 1
then
toggleList = list( hiCreateBooleanButton(
?name concat( strcat( "ppBool" labelItem ) )
?buttonText labelItem
?callback "boolCallBack()"
?defValue t
) xCrd:yCrd 100:80 80 )
else
myBoolList = list( hiCreateBooleanButton(
?name concat( strcat( "ppBool" labelItem ) )
?buttonText labelItem
?callback "boolCallBack()"
?defValue t
) xCrd:yCrd 100:80 80 )
toggleList = append( toggleList myBoolList )
) ;;; end if
loopCntr++
yCrd = yCrd+30
) ;;; end foreach
hiCreateAppForm(
?name 'BP_configForm
?formTitle "Batch Plot"
?callback list( "BPJnk1()" "BPJnk2()" )
?unmapAfterCB t
?buttonLayout 'OKCancelApply
?help ""
?fields list( toggleList )
) ;;; end hiCreateAppForm
hiDisplayForm( BP_configForm )
.
.
.