Changing the normal bitmap of a BitmapButton?

Phew, I have a lot of questions today! As an aside, thanks to everyone involved in this list; it has been a wonderful and important resource for the last two years or so that I have been using it.

Anyway, I would like to change the bitmap of a BitmapButton, but I must be missing something, as it only has Set methods for the Selected/Focus/Hover/Disabled states, but not the Normal state.

Right now I am using a very dirty hack of detaching and then destroying the control, then recreating it, re[binding/tooltiping/tab-ordering], et cetera. I guess I wouldn't mind it that much, except the tab traversal fixing doesn't work; I call MoveBeforeInTabOrder(previousWin), but when I tab in the control before it, it selects the bitmap button for a split-second and then loses the focus.

Is there a way to properly do this? Maybe I have just missed something obvious.

Thanks for any hints,
Mike

Hello,

···

On 8/11/08, Mike Rooney mxr@qvii.com wrote:

Is there a way to properly do this? Maybe I have just missed something obvious.

To se the normal state you need to call SetBitmapLabel

Cody

Cody Precord wrote:

Hello,

    Is there a way to properly do this? Maybe I have just missed
    something obvious.

To se the normal state you need to call SetBitmapLabel

Wow, thanks! From the remark I see that; I had read the description for all the methods but it wasn't obvious to me that a "Bitmap Label" was the main bitmap. I guess it makes sense after more consideration. Thanks again!

- Mike

···

On 8/11/08, *Mike Rooney* <mxr@qvii.com <mailto:mxr@qvii.com>> wrote: