Buttons with bitmap and label?

Hi,

In Delphi, there's a button that can display both a bitmap and a label. Is it possible to do the same with wxBitmapButton? (I tried using SetLabel, but it doesn't seem to have any effect.)

If not, is there another control that can be (ab)used for this purpose? E.g. by making a wxPanel with a bitmap and a label on it, and making it clickable?

Thanks,

···

--
Hans (hans@zephyrfalcon.org)
http://zephyrfalcon.org/

In Saturday, December 13, 2003, 6:33:57 PM, Hans wrote:

In Delphi, there's a button that can display both a bitmap and a label. Is it
possible to do the same with wxBitmapButton? (I tried using SetLabel, but it
doesn't seem to have any effect.)

Try using wxGenBitmapTextButton (there's a sample under
GenericButtons, on the Demo section "More Windows/Controls").

-- tacao

Hans Nowak wrote:

Hi,

In Delphi, there's a button that can display both a bitmap and a label. Is it possible to do the same with wxBitmapButton? (I tried using SetLabel, but it doesn't seem to have any effect.)

Dynamically create a new btimap that contains the original bitmap and the text you want to display, and use the new bitmap with the wxBitmapButton.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!