In the form handler routine, if CtlSetValue is used to turn on a checkbox during frmOpenEvent processing, it has this problem...... HOWEVER: if I move the same code to a section that runs later, like ctlSelectEvent(in response to a form button-push), the checkbox behaves normally, and can be toggled on/off. I suppose that I could try and fake-out the form by queing-up events that pretend the user "Selected" each of the checkbox controls I want to turn on, but CtlSetValue(ctlPtr, 1) SHOULD work, and I need to understand why this is only a problem to call it while proccessing the frmOpenEvent event-msg.
Development Environment: CW for windows (NT), Palm III I can't seem to understand the behavior of checkboxes in my form... I have a CW-Constructor created form with several un-grouped (groupID=0), initially-off checkboxes. Under frmOpenEvent, I get pointers to these checkbox controls, and based on some Boolean variables, call CtlSetValue(ctlPtr,1); for the ones associated with *true* variables. When I click on a checkbox that is left alone, I can toggle it normally, but the ones that the code turned on will not toggle off. These turn off while the pen is down but come back on when the pen is lifted. What is going on here? Is there something else I should use to initialize controls like these? Jim Lynes, Barcode Data Systems [EMAIL PROTECTED] PH: 440-808-8888 x18
