wx.SampleInternat.MyFrame Class Reference

List of all members.

Public Member Functions

 MyFrame (Locale locale)
void OnAbout (object sender, Event e)
void OnQuit (object sender, Event e)

Protected Attributes

Locale m_locale


Detailed Description

Definition at line 20 of file Internat.cs.


Constructor & Destructor Documentation

wx.SampleInternat.MyFrame.MyFrame ( Locale  locale  ) 

Definition at line 39 of file Internat.cs.

00040                         : base( null, -1, _("International wxWidgets App") )
00041                 {
00042                         m_locale = locale;
00043                         
00044                         // Set the window icon
00045 
00046                         Icon = new wx.Icon("../Samples/Internat/mondrian.png");
00047 
00048                         // Set up a menu
00049 
00050                         Menu fileMenu = new Menu();
00051                         fileMenu.AppendWL( (int)Cmd.About, _("&About..."), new EventListener(OnAbout) );
00052                         fileMenu.AppendSeparator();
00053                         fileMenu.AppendWL( (int)Cmd.Quit, _("E&xit"), new EventListener(OnQuit) );
00054 
00055                         wx.MenuBar menuBar = new wx.MenuBar();
00056                         menuBar.Append( fileMenu, _("&File") );
00057 
00058                         MenuBar = menuBar;
00059                 }


Member Function Documentation

void wx.SampleInternat.MyFrame.OnAbout ( object  sender,
Event  e 
)

Definition at line 70 of file Internat.cs.

00071                 {
00072                         string locale = m_locale.GetLocale();
00073                         string sysname = m_locale.SysName;
00074                         string canname = m_locale.CanonicalName;
00075                         
00076                         string localeInfo = String.Format( _("Language: {0}\nSystem locale name:\n{1}\nCanonical locale name: {2}\n"),
00077                                         locale, sysname, canname );
00078                 
00079                         string msg = _("I18n sample\n(c) 1998, 1999 Vadim Zeitlin and Julian Smart");
00080                         msg += _("\nPorted 2004 to wx.NET by Alexander Olk\n\n");
00081                         msg += localeInfo;
00082                         MessageDialog.ShowModal(this, msg, _("About Internat"), wx.WindowStyles.DIALOG_OK | wx.WindowStyles.ICON_INFORMATION);
00083                 }

void wx.SampleInternat.MyFrame.OnQuit ( object  sender,
Event  e 
)

Definition at line 63 of file Internat.cs.

00064                 {
00065                         Close();
00066                 }


Member Data Documentation

Locale wx.SampleInternat.MyFrame.m_locale [protected]

Definition at line 35 of file Internat.cs.


Manual of the wx.NET   (c) 2003-2010 the wx.NET project