|
Saul A
|
How to check in a checkbox?
|
|
Saul A
12/22/2010 4:22 PM
post80092
|
How to check in a checkbox?
Dear Photon experts,
Can anyone of you answer an easy question?
How do you put a check mark in a PtOnOffButton??
Yes I've read the help file, and still stumped.
What is the resource name to set?
I have a simple dialoig with an OnOffButton.
Have tried all of following, but the #$%^&! checkbox does not react.
PtSetResource( ABW_ckbox, Pt_ARG_FLAGS, Pt_SET, 1 );
PtSetResource( ABW_ckbox, Pt_ARG_FLAGS, Pt_SET, 0 );
long *px;
PtGetResource( ABW_ckbox, Pt_ARG_FLAGS, &px, 1 ); // success
PtSetResource( ABW_ckbox, Pt_ARG_FLAGS, *px | Pt_SET, 0 );
PtSetResource( ABW_ckbox, Pt_ARG_FLAGS, *px | Pt_SET, 1 );
Thanks for any idea,
-- S.
|
|
|
|
|