When using bitmaps on a button, there is no automatic image change when the button is pressed. I can of course use the Up/Down events to display a different image when the button is DOWN. This means of course creating a second image for the button. Also if the image is disabled, I would have to create a 3rd image for the bitmap and grey it out.
Is there a better way to conserve memory instead of creating 3 bitmaps for the same button? I know I can draw a colored rectangle around the bitmap button when it is Down, and remove it when it is UP so it changes "color" when it is pressed. This gives the user visual feedback that the button was pressed.
Has anyone perfected this? I'm thinking of drawing a semi-transparent orange rectangle with rounded corners around the button when the Down event is triggered, and redraw the original bitmap image when the Up event is triggered. I could use this for all of the buttons and just resize the rectangle to fit the button dimensions.
Does this seem practical? Has this already been done?
TIA
Widget
Is there a better way to conserve memory instead of creating 3 bitmaps for the same button? I know I can draw a colored rectangle around the bitmap button when it is Down, and remove it when it is UP so it changes "color" when it is pressed. This gives the user visual feedback that the button was pressed.
Has anyone perfected this? I'm thinking of drawing a semi-transparent orange rectangle with rounded corners around the button when the Down event is triggered, and redraw the original bitmap image when the Up event is triggered. I could use this for all of the buttons and just resize the rectangle to fit the button dimensions.
Does this seem practical? Has this already been done?
TIA
Widget