]> git.saurik.com Git - wxWidgets.git/commitdiff
show setting help text for individual radio box items
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Jun 2006 22:40:07 +0000 (22:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 11 Jun 2006 22:40:07 +0000 (22:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/xrc/myframe.cpp
samples/xrc/rc/controls.xrc

index 0d396f3d56c4606bb2a9896aec3a9d466a9d996e..29296978d96038252ea73ef812d80d33aa5bf72d 100644 (file)
@@ -24,6 +24,8 @@
     #include "wx/wx.h"
 #endif
 
+#include "wx/sysopt.h"
+
 //-----------------------------------------------------------------------------
 // Header of this .cpp file
 //-----------------------------------------------------------------------------
@@ -115,6 +117,7 @@ MyFrame::MyFrame(wxWindow* parent)
     // NOTE: For toolbars you currently should do it exactly like this.
     // With toolbars, you currently can't create one, and set it later. It
     // needs to be all in one step.
+    wxSystemOptions::SetOption ( wxT("msw.remap"), 0 );
     SetToolBar(wxXmlResource::Get()->LoadToolBar(this, wxT("main_toolbar")));
 
 #if wxUSE_STATUSBAR
index ed706c78575e8225d7e08a3d9691ed50c3a08dec..f834b6a1a113f32e2a9a5e1313c123d46c6c7d19 100644 (file)
@@ -5,6 +5,7 @@
 <object class="wxDialog" name="controls_dialog">
     <title>Controls Example</title>
     <style>wxCAPTION|wxSYSTEM_MENU|wxRESIZE_BORDER</style>
+    <exstyle>wxDIALOG_EX_CONTEXTHELP</exstyle>
     <centered>1</centered>
     <object class="wxFlexGridSizer">
         <cols>1</cols>
                                     <dimension>1</dimension>
                                     <selection>0</selection>
                                     <content>
-                                        <item tooltip="Powerful radio station">Power 108</item>
+                                        <item tooltip="Powerful radio station" helptext="This station is for amateurs of hard rock and heavy metal">Power 108</item>
                                         <item tooltip="">WMMS 100.7</item>
                                         <item tooltip="E=mc^2">Energy 98.3</item>
-                                        <item>CHUM FM</item>
+                                        <item helptext="Favourite chukcha's radio">CHUM FM</item>
                                         <item>92FM</item>
                                     </content>
                                 </object>