]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/xrc/rc/controls.xrc
fix dialog layout
[wxWidgets.git] / samples / xrc / rc / controls.xrc
index 7ac11defb6fe75b469ad4c6378674bf7407c378c..d6b92a1d42f7505eca91d3bf2284de6da2af15f4 100644 (file)
                                 <object class="wxToolBar">
                                     <style>wxTB_FLAT|wxTB_NODIVIDER</style>
                                     <margins>2,2</margins>
-                                    <object class="tool" name="non_derived_dialog_tool_or_menuitem">
-                                        <tooltip>Non-Derived Dialog Example</tooltip>
-                                        <bitmap>basicdlg.xpm</bitmap>
-                                        <longhelp>The basic instance of wxDialog loaded via XRC</longhelp>
+                                    <object class="tool" name="New">
+                                        <bitmap stock_id="wxART_NEW"/>
+                                        <label>New</label>
                                     </object>
-                                    <object class="tool" name="derived_tool_or_menuitem">
-                                        <tooltip>Derived Dialog Example</tooltip>
-                                        <bitmap>derivdlg.xpm</bitmap>
-                                        <longhelp>The most important example: load an XRC for a derived dialog</longhelp>
-                                    </object>
-                                    <object class="tool" name="controls_tool_or_menuitem">
-                                        <tooltip>Controls Example</tooltip>
-                                        <bitmap>controls.xpm</bitmap>
-                                        <longhelp>A notebook displaying all the wxWidgets controls</longhelp>
-                                    </object>
-                                    <object class="tool" name="uncentered_tool_or_menuitem">
-                                        <tooltip>Uncentered Example</tooltip>
-                                        <bitmap>uncenter.xpm</bitmap>
-                                        <longhelp>Disable autocentering of a dialog on its parent</longhelp>
+                                    <object class="tool" name="view_auto">
+                                        <bitmap stock_id="wxART_FILE_OPEN"/>
+                                        <label>View</label>
+                                        <dropdown>
+                                            <object class="wxMenu">
+                                                <object class="wxMenuItem" name="view_as_text">
+                                                    <label>View as text</label>
+                                                </object>
+                                                <object class="wxMenuItem" name="view_as_hex">
+                                                    <label>View as binary</label>
+                                                </object>
+                                            </object>
+                                        </dropdown>
                                     </object>
                                     <object class="separator"/>
-                                     <object class="tool" name="custom_class_tool_or_menuitem">
-                                        <tooltip>Custom Class Example</tooltip>
-                                        <bitmap>custclas.xpm</bitmap>
-                                        <longhelp>Embed your own custom classes into an XRC</longhelp>
-                                    </object>
-                                    <object class="tool" name="platform_property_tool_or_menuitem">
-                                        <tooltip>Platform Specific Example</tooltip>
-                                        <bitmap>platform.xpm</bitmap>
-                                        <longhelp>Customize parts of an interface for a desired platform</longhelp>
+                                    <object class="tool" name="home">
+                                        <toggle>1</toggle>
+                                        <bitmap stock_id="wxART_GO_HOME"/>
+                                        <label>Home</label>
                                     </object>
-                                    <object class="tool" name="art_provider_tool_or_menuitem">
-                                        <tooltip>wxArtProvider Example</tooltip>
-                                        <bitmap>artprov.xpm</bitmap>
-                                        <longhelp>Use wxArtProvider to insert desired icons at runtime</longhelp>
+                                    <object class="separator"/>
+                                    <object class="tool" name="up">
+                                        <radio>1</radio>
+                                        <bitmap stock_id="wxART_GO_UP"/>
+                                        <label>Up</label>
                                     </object>
-                                    <object class="tool" name="variable_expansion_tool_or_menuitem">
-                                        <tooltip>Variable Expansion Example</tooltip>
-                                        <bitmap>variable.xpm</bitmap>
-                                        <longhelp>Replace variables in the XRC file at runtime</longhelp>
+                                    <object class="tool" name="down">
+                                        <radio>1</radio>
+                                        <bitmap stock_id="wxART_GO_DOWN"/>
+                                        <label>Down</label>
                                     </object>
+                                    <object class="separator"/>
                                     <object class="wxComboBox">
                                         <content>
                                             <item>Just</item>
                                     <style>wxTB_FLAT|wxTB_NODIVIDER</style>
                                     <bg>#bbbbff</bg>
                                     <margins>2,2</margins>
-                                    <object class="tool" name="non_derived_dialog_tool_or_menuitem">
-                                        <tooltip>Non-Derived Dialog Example</tooltip>
-                                        <bitmap>basicdlg.xpm</bitmap>
-                                        <longhelp>The basic instance of wxDialog loaded via XRC</longhelp>
+                                    <object class="tool" name="New">
+                                        <bitmap stock_id="wxART_NEW"/>
+                                        <label>New</label>
                                     </object>
-                                    <object class="tool" name="derived_tool_or_menuitem">
-                                        <tooltip>Derived Dialog Example</tooltip>
-                                        <bitmap>derivdlg.xpm</bitmap>
-                                        <longhelp>The most important example: load an XRC for a derived dialog</longhelp>
-                                    </object>
-                                    <object class="tool" name="controls_tool_or_menuitem">
-                                        <tooltip>Controls Example</tooltip>
-                                        <bitmap>controls.xpm</bitmap>
-                                        <longhelp>A notebook displaying all the wxWidgets controls</longhelp>
+                                    <object class="tool" name="view_auto">
+                                        <bitmap stock_id="wxART_FILE_OPEN"/>
+                                        <label>View</label>
+                                        <dropdown>
+                                            <object class="wxMenu">
+                                                <object class="wxMenuItem" name="view_as_text">
+                                                    <label>View as text</label>
+                                                </object>
+                                                <object class="wxMenuItem" name="view_as_hex">
+                                                    <label>View as binary</label>
+                                                </object>
+                                            </object>
+                                        </dropdown>
                                     </object>
-                                    <object class="tool" name="uncentered_tool_or_menuitem">
-                                        <tooltip>Uncentered Example</tooltip>
-                                        <bitmap>uncenter.xpm</bitmap>
-                                        <longhelp>Disable autocentering of a dialog on its parent</longhelp>
+                                    <object class="tool" name="home">
+                                        <toggle>1</toggle>
+                                        <bitmap stock_id="wxART_GO_HOME"/>
+                                        <label>Home</label>
                                     </object>
                                     <object class="separator"/>
-                                     <object class="tool" name="custom_class_tool_or_menuitem">
-                                        <tooltip>Custom Class Example</tooltip>
-                                        <bitmap>custclas.xpm</bitmap>
-                                        <longhelp>Embed your own custom classes into an XRC</longhelp>
+                                    <object class="tool" name="up">
+                                        <radio>1</radio>
+                                        <bitmap stock_id="wxART_GO_UP"/>
+                                        <label>Up</label>
                                     </object>
-                                    <object class="tool" name="platform_property_tool_or_menuitem">
-                                        <tooltip>Platform Specific Example</tooltip>
-                                        <bitmap>platform.xpm</bitmap>
-                                        <longhelp>Customize parts of an interface for a desired platform</longhelp>
-                                    </object>
-                                    <object class="tool" name="art_provider_tool_or_menuitem">
-                                        <tooltip>wxArtProvider Example</tooltip>
-                                        <bitmap>artprov.xpm</bitmap>
-                                        <longhelp>Use wxArtProvider to insert desired icons at runtime</longhelp>
-                                    </object>
-                                    <object class="tool" name="variable_expansion_tool_or_menuitem">
-                                        <tooltip>Variable Expansion Example</tooltip>
-                                        <bitmap>variable.xpm</bitmap>
-                                        <longhelp>Replace variables in the XRC file at runtime</longhelp>
+                                    <object class="tool" name="down">
+                                        <radio>1</radio>
+                                        <bitmap stock_id="wxART_GO_DOWN"/>
+                                        <label>Down</label>
                                     </object>
+                                    <object class="separator"/>
                                     <object class="wxComboBox">
                                         <content>
                                             <item>Just</item>