From 84adefa331c4159d432d22840663c38f155cd4c1 Mon Sep 17 00:00:00 2001 From: Erlang/OTP Date: Fri, 20 Nov 2009 14:54:40 +0000 Subject: The R13B03 release. --- lib/wx/examples/xrc/rc/platform.xrc | 145 ++++++++++++++++++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 lib/wx/examples/xrc/rc/platform.xrc (limited to 'lib/wx/examples/xrc/rc/platform.xrc') diff --git a/lib/wx/examples/xrc/rc/platform.xrc b/lib/wx/examples/xrc/rc/platform.xrc new file mode 100644 index 0000000000..43313cb853 --- /dev/null +++ b/lib/wx/examples/xrc/rc/platform.xrc @@ -0,0 +1,145 @@ + + + + + + Platform Property Example + 1 + + 1 + 0 + 0 + 0 + 0 + 0 + + wxGROW|wxALIGN_CENTER_VERTICAL|wxALL + 5 + + 500,150 + + You can specify certain nodes of an XRC file to only be used for a certain platform.\n\nTo do this, there is a "platform" property that can be placed in any node [ie inside an opening tag]. The value of the tag can be any combination of the following: mac, win, unix, or os2. Use a | symbol between multiple platforms, for example <label platform="win|mac">\n\nAt runtime, if there is a platform property in the tag, if it matches the current operating system, that node will be included, otherwise it won't.\n\nThe notebook example below shows how you can specify a high level node to only appear on a certain platform: the example here being a page of preferences that only make sense on a certain platform.\n\nThe second example shows how to replace a single attribute of a control: here the label of a download link. It is also very useful for specifying menu item accelerators keystrokes on the target platform. + + + + wxGROW|wxALIGN_CENTER_VERTICAL|wxALL + 5 + + 1 + 200,160 + + + + + wxVERTICAL + + wxALIGN_CENTRE|wxALL + 5 + + + + + + + + + + + + wxVERTICAL + + wxALIGN_CENTRE|wxALL + 5 + + + + + + + + + + + + wxVERTICAL + + wxALIGN_CENTRE|wxALL + 5 + + + + + + + + + + + + wxVERTICAL + + wxALIGN_CENTRE|wxALL + 5 + + + + + + + + + + + + wxVERTICAL + + wxALIGN_CENTRE|wxALL + 5 + + + + + + + + + + + wxALIGN_CENTRE|wxALL + 5 + + + + + + wxALIGN_CENTRE|wxALL + 5 + + + + + + wxALIGN_CENTRE|wxALL + 5 + + + + + + wxALIGN_CENTRE|wxALL + 5 + + + + + + wxALIGN_CENTRE|wxALL + 5 + + + + + + + + -- cgit v1.2.3