If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Hi. Is it possible to have a label on bitmap button as well as bitmap. I am trying but only getting bitmap and no label. I am doing some thing like this...
sorry that was tying mistake. I wanted to clear the point that if wxBitmapButton was derived from wxButton, then why we cant set label to button, as well as bitmap (reather than drawing to it)
The way it's set up makes sense to me (I didn't write the code).
I think of it as they are both buttons with the same or similar behavior (enable, clicking, etc.) and one has a text label and the other has a bitmap on it.
The fact that one derives from the other is matter of convenience and maintainability for the developers.
Rather than a label on a bitmap, what about a bitmap button with a tool tip to provide the guidance text?
A bitmap button cant have a label. In that case you can prepare the bitmap with the particular label, and if you want to change the label during run time, change the bitmap.