Palm OS actually supports rectangular frames around buttons, but this
feature is missed in the Constructor and Control API.

Try the following code (if you have an access to internals of Palm OS
structures):

ControlPtr ctlP = (ControlPtr)GetObjectPtr(frmP, <Button ID>);
ctlP->attr.frame = rectangleButtonFrame;

You'll see properly working rectangular button. It's better to patch the
Constructor and to enable this feature for developers.

______________________________________________

Best regards,
Maks Pyatkovskiy

> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:bounce-palm-dev-
> [EMAIL PROTECTED]] On Behalf Of Ben Combee
> Sent: Monday, May 27, 2002 12:13 PM
> To: Palm Developer Forum
> Subject: Re: Square buttons and Constructor
> 
> In article <87270@palm-dev-forum>, [EMAIL PROTECTED] says...
> >
> > I'm getting my feet wet with CW and Constructor.  I would like to
have
> > square button in my new app, but Constructor only seems to give the
> option
> > of with/without frames.  Is there a built in way to get square
buttons?
> If
> > not, I'd appreciate someone telling me a work-around.
> 
> Palm OS doesn't support square buttons in their user interface
> guidelines, other than as part of a set of push buttons.  You can get
a
> square button effect by using a sole push button, but you have to
> manually reset it to "off" when you get the select event.
> 
> --
> Ben Combee <[EMAIL PROTECTED]>
> CodeWarrior for Palm OS technical lead
> Get help at http://palmoswerks.com/
> 
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/support/forums/


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

Reply via email to