It looks like you are using a graphic push button, which begs the
question why you ever set it for a border anyway. So why not simply
remove the button frame in the resource editor?
Roger. Thanks. That sounds like the good alternative. I've been
using Constructor, which doesn't give an option to shut off frames for
push buttons. I either forgot or never new there was an alternative
resource editor.
Rich
>> 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
Roger Stringer
Marietta Systems, Inc. (www.rf-tp.com)
--
For information on using the PalmSource Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/