Another way to do it:

Draw a bitmap with whatever look you want your button to have (hint: with the
rectangle frame you want);
Make a custom font resource out of that bitmap (hint: do it for all your
buttons);
Specify the buttons borderless and use the single char in your custom font as
the button label.

So far, there have been FOUR legal ways (see my other post) to do it, why
bother with the incompatible one? :)

Max
--- Max Bian <[EMAIL PROTECTED]> wrote:
> Hi.
> 
> The rectangle button is nothing hard to do.  Make your button frame-less and
> specify the sizes.  In your code, draw a rectangle just outside of the button
> bounds. This makes the button looks exactly like a rectangle button.
> 
> Max
> --- sajulpn <[EMAIL PROTECTED]> wrote:
> > Hi Roger,
> >             I agree with whatever you have said, this might not work 
> > with the next major release. But what is the next major release supposed 
> > to give to enable us to change frame attributes? Palm talks about the 
> > glue functions, but I have failed to locate anything there. Surely Palm 
> > will not remove a facility that that they have given to us till right 
> > now. That would be absurd. They have to provide some method or call to 
> > change frame attributes dynamically. If that is not the case then all 
> > the old applications written earlier will need major changes to run on 
> > new devices.
> >             Besides since Palm has defined all these attributes they 
> > must also provide the means and methods to use them. If you know the 
> > method please post them here. It will be a lot of help to us all.
> > ;-)  Cheers,
> > Sajul
> > 
> > Ps- I did not understand how exactly the code will fail. I am copying 
> > the structure to a temp variable and making changes to the temp variable 
> > and assigning the temp values to the old structure variable. Is the 
> > structure protected? If it is why does it not give any warning on the 
> > emulator? It does give a warning if I directly change the frame 
> > attribute of the struct variable.
> > 
> > Stringer wrote:
> > 
> > >
> > >This might be a work around for the current error trap, but the error trap
> > >exists because Palm doesn't expect this will work with the next major
> > >release of the OS.
> > >
> > >All you  are really doing is building code which is guaranteed to fail
> > >in the very near future.  A bad programming style!
> > >
> > >Roger Stringer
> > >Marietta Systems, inc.
> > >
> > >
> > 
> > 
> > 
> > -- 
> > For information on using the Palm Developer Forums, or to unsubscribe,
> please
> > see http://www.palmos.com/dev/tech/support/forums/
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe, please
> see http://www.palmos.com/dev/tech/support/forums/


__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

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

Reply via email to