"Yu, Ken [IT]" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > > > I have a *.rcp file that defines buttons with bitmaps as their > labels. On OS's that support bitmaps, they appear correct. On OS's that do > not, garbage characters appear. > > > For OS's that do not support bitmaps on buttons, is it possible to show > > its text label instead? (without having seperate executables for different > > OS's)
Graphical buttons were not supported until OS 3.5. Their implementation reuses the text pointer field in the button structure to specify the ID of the bitmaps. A flag that was unused before 3.5 signals that the buttons are graphical to the OS. To build a graphical button that works on pre-3.5 devices, you need to just define a normal button with no frame and no text. Then define a form bitmap with the same dimensions as the button. Overlay these on top of each other, and the OS will automatically invert the bitmap when the collocated button is selected. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
