Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - How to check in a checkbox?: Page 1 of 10 (10 Items)
   
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.