Add XRC handler for wxBannerWindow and a test for it to the xrc sample.
Also document the new XRC format elements. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -54,6 +54,68 @@
|
||||
</object>
|
||||
</object>
|
||||
|
||||
<object class="choicebookpage">
|
||||
<label>wxBannerWindow</label>
|
||||
<object class="wxPanel" name="bannerwindow">
|
||||
<object class="wxBoxSizer">
|
||||
<orient>wxHORIZONTAL</orient>
|
||||
|
||||
<object class="sizeritem">
|
||||
<flag>wxEXPAND</flag>
|
||||
<object class="wxBannerWindow">
|
||||
<title>Welcome to banner demo page!</title>
|
||||
<message>This is a default wxLEFT banner with some text.\nThe banner on the top uses a bitmap.</message>
|
||||
</object>
|
||||
</object>
|
||||
|
||||
<object class="sizeritem">
|
||||
<flag>wxEXPAND|wxLEFT|wxRIGHT</flag>
|
||||
<option>1</option>
|
||||
<border>15</border>
|
||||
<object class="wxBoxSizer">
|
||||
<orient>wxVERTICAL</orient>
|
||||
|
||||
<object class="sizeritem">
|
||||
<flag>wxEXPAND</flag>
|
||||
<object class="wxBannerWindow">
|
||||
<direction>wxTOP</direction>
|
||||
<bitmap>wxbanner.gif</bitmap>
|
||||
<fg>yellow</fg>
|
||||
<!-- Using spaces for indentation is ugly but will do for this simple example. -->
|
||||
<title> Tip:</title>
|
||||
<message> You can also use text\n and bitmap together.</message>
|
||||
</object>
|
||||
</object>
|
||||
|
||||
<object class="spacer">
|
||||
<option>1</option>
|
||||
</object>
|
||||
|
||||
<object class="sizeritem">
|
||||
<flag>wxEXPAND</flag>
|
||||
<object class="wxBannerWindow">
|
||||
<direction>wxBOTTOM</direction>
|
||||
<title>A word of advice:</title>
|
||||
<message>You probably shouldn't use banners\non all four sides at once.</message>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
|
||||
<object class="sizeritem">
|
||||
<flag>wxEXPAND</flag>
|
||||
<object class="wxBannerWindow">
|
||||
<direction>wxRIGHT</direction>
|
||||
<title>Custom Banner</title>
|
||||
<message>You can change the gradient colours.</message>
|
||||
<gradient-start>#7f7f7f</gradient-start>
|
||||
<gradient-end>#ffffff</gradient-end>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
|
||||
<object class="choicebookpage">
|
||||
<label>wxButton</label>
|
||||
<object class="wxPanel" name="button">
|
||||
|
BIN
samples/xrc/rc/wxbanner.gif
Normal file
BIN
samples/xrc/rc/wxbanner.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Reference in New Issue
Block a user