It seems to me the following snippet of code should work even if the code is
pointless. For some reason, when I try to set the checkbox the second time,
the program blows up. Any ideas? Your help would be greatly appreciated!
frmP = FrmInitForm (AboutForm);
FrmSetActiveForm(frmP);
CtlSetValue((ControlType *)GetObjectPtr(AboutTestCheckbox),0);
FrmDoDialog (frmP);
Int16 iTemp = CtlGetValue((ControlType
*)GetObjectPtr(AboutTestCheckbox));
// The following line is erroring out on me . . . looks like the stack
is clobbered
CtlSetValue((ControlType *)GetObjectPtr(AboutTestCheckbox),0);
FrmDoDialog (frmP); // Display the About Box.
FrmDeleteForm (frmP);
Thanks!
Jon C. Zaring
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/