wxWidgets XUL Challenge 2004 Samples
Gerald Bauer <[email protected]> Fri, 21 Jan 2005 11:14:52 -0800 (PST)
| Newsgroups | gmane.comp.lang.xul.general |
|---|---|
| Message-ID | <[email protected]> |
Hello,
Joseph Blough just sent in the the XUL Challenge
2004 samples for the wxWidgets XML UI language format
called XRC.
I will check in the sources shortly and add the
screenshots and code snippets to the showcase online @
http://xul.sourceforge.net/counter.html
In the meantime here's the sample for the counter
challenge.
<?xml version="1.0" encoding="ISO-8859-1"?>
<resource version="2.3.0.1"
xmlns="http://www.wxwidgets.org/wxxrc">
<object class="wxPanel" name="ID_DIALOG_COUNTER"
subclass="CounterPanel">
<style>wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX</style>
<exstyle>wxWS_EX_BLOCK_EVENTS</exstyle>
<size>400,300</size>
<object class="wxBoxSizer">
<orient>wxVERTICAL</orient>
<object class="sizeritem">
<flag>wxALIGN_CENTER_HORIZONTAL|wxALL</flag>
<border>5</border>
<object class="wxStaticBoxSizer"
name="wxID_ANY">
<orient>wxVERTICAL</orient>
<label>Counter</label>
<object class="sizeritem">
<flag>wxGROW|wxALL</flag>
<border>5</border>
<object class="wxTextCtrl"
name="ID_TEXTCTRL_VALUE">
<style>wxTE_CENTRE</style>
<value>0</value>
</object>
</object>
<object class="sizeritem">
<flag>wxGROW|wxALL</flag>
<border>5</border>
<object class="wxBoxSizer">
<orient>wxHORIZONTAL</orient>
<object class="sizeritem">
<flag>wxALIGN_CENTER_VERTICAL|wxRIGHT|wxTOP|wxBOTTOM</flag>
<border>5</border>
<object
class="wxButton" name="ID_BUTTON_DEC">
<label>Dec(-)</label>
</object>
</object>
<object class="sizeritem">
<flag>wxALIGN_CENTER_VERTICAL|wxALL</flag>
<border>5</border>
<object
class="wxButton" name="ID_BUTTON_CLEAR">
<label>Clear</label>
</object>
</object>
<object class="sizeritem">
<flag>wxALIGN_CENTER_VERTICAL|wxLEFT|wxTOP|wxBOTTOM</flag>
<border>5</border>
<object
class="wxButton" name="ID_BUTTON_INC">
<label>Inc(+)</label>
</object>
</object>
</object>
</object>
</object>
</object>
</object>
</object>
</resource>
Any comments or ideas on how to improve the
wxWidgets XML UI language format?
- Gerald
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl