At 20:57 2003-3-13 +0100, you wrote:
I am trying to display a group of bitmap push buttons. It works except the
awful frame. Can somebody tell me how to remove the frame?

The buttons are defined in rsrc file as

    PUSHBUTTON  "" ID btnIcons  AT (120         2 11 11) NOFRAME GROUP
ListStyleBtnGroup BITMAPID IconsBmp  GRAPHICAL SELECTEDBITMAPID
IconsSelectedBmp
    PUSHBUTTON  "" ID btnReport AT (PREVRIGHT+3 2 11 11) NOFRAME GROUP
ListStyleBtnGroup BITMAPID ReportBmp GRAPHICAL SELECTEDBITMAPID
ReportSelectedBmp
    PUSHBUTTON  "" ID btnText   AT (PREVRIGHT+3 2 11 11) NOFRAME GROUP
ListStyleBtnGroup BITMAPID TextBmp   GRAPHICAL SELECTEDBITMAPID
TextSelectedBmp

Attribute NOFRAME seems to be ignored.

This could be a PilRC bug.


I searched the official documentation, but the only notion concerning the
button frame (ButtonFrameType) is in the ControlAttrType structure and Palm
discourages direct access to it.

I could not locate anything useful in the forum archives either - the two
questions concerning the subject in the past remained basically unanswered.

I can imagine programming push button functionality manually, but this
should be the last resort.

The new Palm OS 5.0 68K SDK R2 has a CtlGlueSetFrameStyle function in the glue library -- this could be used to turn off the push button's frame.


--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



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

Reply via email to