Public Types | |
| enum | Cmd |
Public Member Functions | |
| MyFrame (Window parent, string title, Point pos, Size size) | |
| void | OnAbout (object sender, Event e) |
| void | OnClosing (object sender, Event e) |
| void | OnHelp (object sender, Event e) |
| void | OnQuit (object sender, Event e) |
Definition at line 25 of file HtmlHelp.cs.
Definition at line 27 of file HtmlHelp.cs.
00028 { 00029 HtmlHelp_Quit, 00030 HtmlHelp_About, 00031 HtmlHelp_Help 00032 }
| wx.SampleHtmlHelp.MyFrame.MyFrame | ( | Window | parent, | |
| string | title, | |||
| Point | pos, | |||
| Size | size | |||
| ) |
Definition at line 36 of file HtmlHelp.cs.
00037 : base( parent, -1, title, pos, size ) 00038 { 00039 Menu menuFile = new Menu(); 00040 00041 menuFile.AppendWL( (int)Cmd.HtmlHelp_Help, "&Help", "Test Help...", new EventListener( OnHelp ) ); 00042 menuFile.AppendWL( (int)Cmd.HtmlHelp_About, "&About", "About the sample...", new EventListener( OnAbout ) ); 00043 menuFile.AppendWL( (int)Cmd.HtmlHelp_Quit, "E&xit\tAlt-X", "Quit this program", new EventListener( OnQuit ) ); 00044 00045 MenuBar menuBar = new MenuBar(); 00046 menuBar.Append( menuFile, "&File" ); 00047 00048 MenuBar = menuBar; 00049 00050 help = new Html.Help.HtmlHelpController(Html.Help.HtmlHelpController.Style.DEFAULT_STYLE | Html.Help.HtmlHelpController.Style.OPEN_FILES); 00051 00052 help.UseConfig( Config.Get() ); 00053 00054 help.TempDir = "." ; 00055 00056 bool ret = help.AddBook( "../Samples/HtmlHelp/helpfiles/testing.hhp" ); 00057 if ( !ret ) 00058 MessageDialog.MessageBox( "Failed adding book ../Samples/HtmlHelp/helpfiles/testing.hhp" ); 00059 00060 ret = help.AddBook( "../Samples/HtmlHelp/helpfiles/another.hhp" ); 00061 if ( !ret ) 00062 MessageDialog.MessageBox( "Failed adding book ../Samples/HtmlHelp/helpfiles/another.hhp" ); 00063 00064 this.Closing += new EventListener(OnClosing); 00065 }
| void wx.SampleHtmlHelp.MyFrame.OnAbout | ( | object | sender, | |
| Event | e | |||
| ) |
Definition at line 92 of file HtmlHelp.cs.
00093 { 00094 MessageDialog.ShowModal( this, "HtmlHelpController class sample.\n" + 00095 "\n" + 00096 "Ported to wx.NET by Alexander Olk", "About HtmlHelpController", wx.WindowStyles.DIALOG_OK | wx.WindowStyles.ICON_INFORMATION ); 00097 }
| void wx.SampleHtmlHelp.MyFrame.OnClosing | ( | object | sender, | |
| Event | e | |||
| ) |
| void wx.SampleHtmlHelp.MyFrame.OnHelp | ( | object | sender, | |
| Event | e | |||
| ) |
| void wx.SampleHtmlHelp.MyFrame.OnQuit | ( | object | sender, | |
| Event | e | |||
| ) |
(c) 2003-2010 the wx.NET project