Another of my noob questions. I have been trying to search for this on google to no avail. Is there a way to have a button that has both a text label AND a bitmap/icon? I tried creating a wxBitmapButton and then using SetLabel, but all I saw was the bitmap.
Any suggestions?
Thanks!
Button with both bitmap and text label? Topic is solved
-
- Super wx Problem Solver
- Posts: 396
- Joined: Wed Oct 05, 2005 1:19 am
I think to do that create a dialog then place the wxBitmapButton on it. Then set the label of the dialog. Or do you want text on the button itself?
http://www.wxwidgets.org/manuals/2.6.2/ ... tmapbutton
http://www.wxwidgets.org/manuals/2.6.2/ ... tmapbutton
-
- Part Of The Furniture
- Posts: 1511
- Joined: Sun Jun 19, 2005 11:37 am
- Location: Singapore
- Contact:
im working on the patch for it... I can't release it yet... but you can use Dave fileccia's first http://sourceforge.net/tracker/index.ph ... tid=309863
-
- Can't get richer than this
- Posts: 802
- Joined: Mon Dec 27, 2004 10:46 am
- Location: Estonia, Tallinn
- Contact:
Meanwhile there are classes out in the wild, such as mmMultiButton from mmwx:
http://mindmatters.no/mmwx/
I recall that wxCode might have had something like that too, but not sure if that wasn't some other place...
http://mindmatters.no/mmwx/
I recall that wxCode might have had something like that too, but not sure if that wasn't some other place...
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
-
- Experienced Solver
- Posts: 52
- Joined: Tue Sep 20, 2005 3:49 pm
- Location: Konstanz, Germany
-
- Can't get richer than this
- Posts: 802
- Joined: Mon Dec 27, 2004 10:46 am
- Location: Estonia, Tallinn
- Contact:
It is extremely trivial to do it in GTK+. No idea about Mac.
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
-
- Can't get richer than this
- Posts: 802
- Joined: Mon Dec 27, 2004 10:46 am
- Location: Estonia, Tallinn
- Contact:
It will not, unless you are dealing with a wxUniversal port (and then it might not work either), or are lucky on a certain port.
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/
OS's: Gentoo Linux, WinXP; WX: CVS HEAD
Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/