At 3:29 PM +0200 04/27/00, Stephen Bentley wrote:
>This is my first attempt of using a graphic button.
>
>I don't understand why the button is blank until tapped THEN
>I see the bitmap I defined for it.  Once it responds to the tap,
>it goes blank again.
>
>What am I doing wrong?

Sounds like you've filled in the wrong bitmap ID.

Buttons can have two bitmaps associated with them.  The unselected ID is
normally drawn with the button.  The selected ID is drawn when the pen is
down over the button.  If the selected ID is NULL, then the unselected
image is drawn with the colors inverted, or (if it's color), drawn over a
modified background.

The calculator uses this: the buttons have a different graphic for selected
and unselected states.  All the other graphic buttons in the OS (datebook
pushbuttons, hotsync button, etc) just use one graphic, and it's "inverted"
when the button is pressed.

So perhaps the resource tools are filling in the graphic button structure
incorrectly??

This would explain why CtlSetGraphics fixes the problem -- it (finally)
fills in the normal ID.

                                --Bob



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to