Public Member Functions | |
| void | OnAboutToolOrMenuCommand (object sender, Event e) |
| void | OnArtProviderToolOrMenuCommand (object sender, Event e) |
| void | OnControlsToolOrMenuCommand (object sender, Event e) |
| void | OnCustomClassToolOrMenuCommand (object sender, Event e) |
| void | OnDerivedDialogToolOrMenuCommand (object sender, Event e) |
| void | OnExitToolOrMenuCommand (object sender, Event e) |
| void | OnNonDerivedDialogToolOrMenuCommand (object sender, Event e) |
| void | OnPlatformPropertyToolOrMenuCommand (object sender, Event e) |
| void | OnUncenteredToolOrMenuCommand (object sender, Event e) |
| void | OnVariableExpansionToolOrMenuCommand (object sender, Event e) |
| void | OnWxGladeMenu (object sender, Event e) |
| XrcFrame (Window parent) | |
| XrcFrame () | |
Definition at line 18 of file Xrcdemo.cs.
| wx.Xrcdemo.XrcFrame.XrcFrame | ( | ) |
| wx.Xrcdemo.XrcFrame.XrcFrame | ( | Window | parent | ) |
Definition at line 23 of file Xrcdemo.cs.
00024 { 00025 try 00026 { 00027 XmlResource.Get().LoadFrame(this, parent, "main_frame"); 00028 00029 Icon = new Icon("../Samples/Xrc/rc/appicon.ico"); 00030 00031 MenuBar = XmlResource.Get().LoadMenuBar("main_menu"); 00032 00033 ToolBar = XmlResource.Get().LoadToolBar(this, "main_toolbar"); 00034 00035 CreateStatusBar(1); 00036 00037 EVT_MENU(XmlResource.XRCID("exit_tool_or_menuitem"), new EventListener(OnExitToolOrMenuCommand)); 00038 EVT_MENU(XmlResource.XRCID("non_derived_dialog_tool_or_menuitem"), new EventListener(OnNonDerivedDialogToolOrMenuCommand)); 00039 EVT_MENU(XmlResource.XRCID("derived_tool_or_menuitem"), new EventListener(OnDerivedDialogToolOrMenuCommand)); 00040 EVT_MENU(XmlResource.XRCID("controls_tool_or_menuitem"), new EventListener(OnControlsToolOrMenuCommand)); 00041 EVT_MENU(XmlResource.XRCID("uncentered_tool_or_menuitem"), new EventListener(OnUncenteredToolOrMenuCommand)); 00042 EVT_MENU(XmlResource.XRCID("custom_class_tool_or_menuitem"), new EventListener(OnCustomClassToolOrMenuCommand)); 00043 EVT_MENU(XmlResource.XRCID("platform_property_tool_or_menuitem"), new EventListener(OnPlatformPropertyToolOrMenuCommand)); 00044 EVT_MENU(XmlResource.XRCID("art_provider_tool_or_menuitem"), new EventListener(OnArtProviderToolOrMenuCommand)); 00045 EVT_MENU(XmlResource.XRCID("variable_expansion_tool_or_menuitem"), new EventListener(OnVariableExpansionToolOrMenuCommand)); 00046 EVT_MENU(XmlResource.XRCID("wxglade_dialog_menuitem"), new EventListener(OnWxGladeMenu)); 00047 EVT_MENU(XmlResource.XRCID("about_tool_or_menuitem"), new EventListener(OnAboutToolOrMenuCommand)); 00048 } 00049 catch (Exception exc) 00050 { 00051 Log.LogError(exc.Message); 00052 } 00053 }
| void wx.Xrcdemo.XrcFrame.OnAboutToolOrMenuCommand | ( | object | sender, | |
| Event | e | |||
| ) |
Definition at line 171 of file Xrcdemo.cs.
00172 { 00173 string msg = "This is the about dialog of XML resources demo.\n" + 00174 "Ported to wx.NET by Alexander Olk"; 00175 MessageDialog.ShowModal( this, msg, "About XML resources demo", wx.WindowStyles.DIALOG_OK | wx.WindowStyles.ICON_INFORMATION ); 00176 }
| void wx.Xrcdemo.XrcFrame.OnArtProviderToolOrMenuCommand | ( | object | sender, | |
| Event | e | |||
| ) |
Definition at line 155 of file Xrcdemo.cs.
References Dialog.
00156 { 00157 Dialog dlg = XmlResource.Get().LoadDialog( this, "art_provider_dialog" ); 00158 dlg.ShowModal(); 00159 }
| void wx.Xrcdemo.XrcFrame.OnControlsToolOrMenuCommand | ( | object | sender, | |
| Event | e | |||
| ) |
Definition at line 96 of file Xrcdemo.cs.
References Dialog.
00097 { 00098 Dialog dlg = XmlResource.Get().LoadDialog(this, "controls_dialog" ); 00099 00100 //ListCtrl lc = (ListCtrl)dlg.FindWindow( XmlResource.XRCID( "controls_listctrl" ), typeof( ListCtrl) ); 00101 00102 ListCtrl lc = (ListCtrl)XmlResource.XRCCTRL( dlg, "controls_listctrl", typeof( ListCtrl ) ); 00103 00104 lc.InsertColumn( 0, "Name", wx.ListColumnFormat.LEFT, 200); 00105 lc.InsertItem( 0, "Todd Hope" ); 00106 lc.InsertItem( 1, "Kim Wynd" ); 00107 lc.InsertItem( 2, "Leon Li" ); 00108 00109 TreeCtrl treectrl = (TreeCtrl)XmlResource.XRCCTRL( dlg, "controls_treectrl", typeof( TreeCtrl ) ); 00110 00111 treectrl.AddRoot( "Godfather" ); 00112 00113 treectrl.AppendItem( treectrl.RootItem, "Evil henchman 1" ); 00114 treectrl.AppendItem( treectrl.RootItem, "Evil henchman 2" ); 00115 treectrl.AppendItem( treectrl.RootItem, "Evil accountant" ); 00116 00117 dlg.ShowModal(); 00118 }
| void wx.Xrcdemo.XrcFrame.OnCustomClassToolOrMenuCommand | ( | object | sender, | |
| Event | e | |||
| ) |
Definition at line 130 of file Xrcdemo.cs.
References Dialog.
00131 { 00132 Dialog dlg = XmlResource.Get().LoadDialog( this, "custom_class_dialog" ); 00133 00134 MyResizableListCtrl a_myResizableListCtrl = new MyResizableListCtrl( dlg, 00135 -1, 00136 wxDefaultPosition, 00137 wxDefaultSize, 00138 wx.WindowStyles.LC_REPORT ); 00139 00140 XmlResource.Get().AttachUnknownControl( "custom_control_placeholder", a_myResizableListCtrl ); 00141 00142 dlg.ShowModal(); 00143 }
| void wx.Xrcdemo.XrcFrame.OnDerivedDialogToolOrMenuCommand | ( | object | sender, | |
| Event | e | |||
| ) |
Definition at line 73 of file Xrcdemo.cs.
00074 { 00075 PreferencesDialog preferencesDialog = new PreferencesDialog( this ); 00076 00077 preferencesDialog.ShowModal(); 00078 }
| void wx.Xrcdemo.XrcFrame.OnExitToolOrMenuCommand | ( | object | sender, | |
| Event | e | |||
| ) |
| void wx.Xrcdemo.XrcFrame.OnNonDerivedDialogToolOrMenuCommand | ( | object | sender, | |
| Event | e | |||
| ) |
Definition at line 64 of file Xrcdemo.cs.
References Dialog.
00065 { 00066 Dialog dlg = XmlResource.Get().LoadDialog(this, "non_derived_dialog" ); 00067 00068 dlg.ShowModal(); 00069 }
| void wx.Xrcdemo.XrcFrame.OnPlatformPropertyToolOrMenuCommand | ( | object | sender, | |
| Event | e | |||
| ) |
Definition at line 147 of file Xrcdemo.cs.
References Dialog.
00148 { 00149 Dialog dlg = XmlResource.Get().LoadDialog( this, "platform_property_dialog" ); 00150 dlg.ShowModal(); 00151 }
| void wx.Xrcdemo.XrcFrame.OnUncenteredToolOrMenuCommand | ( | object | sender, | |
| Event | e | |||
| ) |
Definition at line 122 of file Xrcdemo.cs.
References Dialog.
00123 { 00124 Dialog dlg = XmlResource.Get().LoadDialog( this, "uncentered_dialog" ); 00125 dlg.ShowModal(); 00126 }
| void wx.Xrcdemo.XrcFrame.OnVariableExpansionToolOrMenuCommand | ( | object | sender, | |
| Event | e | |||
| ) |
Definition at line 163 of file Xrcdemo.cs.
References Dialog.
00164 { 00165 Dialog dlg = XmlResource.Get().LoadDialog( this, "variable_expansion_dialog" ); 00166 dlg.ShowModal(); 00167 }
| void wx.Xrcdemo.XrcFrame.OnWxGladeMenu | ( | object | sender, | |
| Event | e | |||
| ) |
Definition at line 82 of file Xrcdemo.cs.
00083 { 00084 00085 /*Dialog dlg = XmlResource.Get().LoadDialog(this, "wxglade_dialog" ); 00086 00087 dlg.ShowModal();*/ 00088 00089 wxGladeDialog wxgladeDialog = new wxGladeDialog( this ); 00090 00091 wxgladeDialog.ShowModal(); 00092 }
(c) 2003-2010 the wx.NET project