how do I change (in a documented and portable way) the frame style of a button (e.g., from bold to standard and back)?

Did you checked the GlueLib-Functions from the SDK? API
Reference->Libraries->PalmOSGlue Library: CtlGlueSetFrameStyle

This is an old thread, but the answer isn't working for me for some reason. I'm ganging some pushbuttons together and want to get rid of the borders of all the pushbuttons.

According to the thread, calling CtlGlueSetFrameStyle before FrmDrawForm should do the trick. My code in frmOpenEvent section looks like --

ControlType* ctl = (ControlType*)FrmGetObjectPtr(formP, FrmGetObjectIndex(formP, MainOption1GraphicPushButton));
 CtlGlueSetFrameStyle(ctl, noButtonFrame);
 FrmDrawForm(formP);

But, on FrmDrawForm the buttons and their borders are drawn. I've run this on the emulator and the simulator with the same results.

Thanks,
Rich

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to