CompuServe Messages

#Help w/Gadgets in C

#: 128826 S10/ProgrammingForum unknown
    09-Jun-88 00:08:49
Sb: #Help w/Gadgets in C
Fm: steve childress 73007,350
To: all

This message turned up in search, but its forum couldn’t be identified from the original transcript, so it may not be linked into its thread.

hello …. first time i've logged on in a long time. Need help w/INTUITION problem. My program has several gadgets, of BOOLEAN type, which are Toggle types. They work fine. However, I need to change the on/off state, sometimes, under program control, rather than when user clicks on them. My code for this merely alters the gadget->Flags |= SELECTED bit, then calls RefreshGadgets(). What I see is that the rendering of the gadgets doesn't track what I do with the SELECTED bit. In fact, successive calls to RefreshGadgets() without changing the FLAGS word causes the graphics rendering to change between three different appearances. Any ideas? Steve Childress. 73007,350 plink:OPS274 USENET: ..!wlbr!etn-rad!steve