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?

By the way, the code looks valid.

Roger Stringer

At 03:15 AM 12/24/2005, you wrote:
Subject: Changing the frame style of a button (again)
From: "Richard Coutts" <[EMAIL PROTECTED]>
Date: Fri, 23 Dec 2005 07:42:25 -0500
X-Message-Number: 3

>> 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/
Roger Stringer
Marietta Systems, Inc. (www.rf-tp.com)

Reply via email to