basicdlg.xrc 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.3.0.1">
  3. <object class="wxDialog" name="non_derived_dialog">
  4. <title>Non-Derived Dialog Example</title>
  5. <centered>1</centered>
  6. <object class="wxBoxSizer">
  7. <orient>wxVERTICAL</orient>
  8. <object class="sizeritem">
  9. <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
  10. <border>5</border>
  11. <object class="wxTextCtrl" name="message_textctrl">
  12. <size>500,150</size>
  13. <style>wxTE_MULTILINE</style>
  14. <value>This is the basic non-derived XRC dialog. It is just an instance of wxDialog, not a instance of a class derived from wxDialog that was given some added functionality.\n\nYou can put whatever controls you want on these non-derived dialogs, but the dialog won't interact with the controls, nor do anything in response to any of their events. It only has the built-in functionality of a wxDialog, and that is it. A non-derived dialog can automatically close itself when you hit either the OK or Cancel button (returning a return code of what button you pressed), and not much else.\n\nThese are useful for an About dialog, or a message dialog popup, but that's about it. For the rest you will almost certainly use a derived dialog (see next example).</value>
  15. </object>
  16. </object>
  17. <object class="sizeritem">
  18. <flag>wxEXPAND|wxALL</flag>
  19. <border>5</border>
  20. <object class="wxStdDialogButtonSizer">
  21. <object class="button">
  22. <object class="wxButton" name="wxID_OK">
  23. <label>OK</label>
  24. </object>
  25. </object>
  26. <object class="button">
  27. <object class="wxButton" name="wxID_CANCEL">
  28. <label>Cancel</label>
  29. </object>
  30. </object>
  31. </object>
  32. </object>
  33. </object>
  34. </object>
  35. </resource>