wx.SampleListbook.MyListbook Class Reference

List of all members.

Public Member Functions

 MyListbook (Window parent, int id)
void OnPageChanged (object sender, Event e)
void OnPageChanging (object sender, Event e)

Public Attributes

ImageList imageList


Detailed Description

Definition at line 84 of file Listbook.cs.


Constructor & Destructor Documentation

wx.SampleListbook.MyListbook.MyListbook ( Window  parent,
int  id 
)

Definition at line 90 of file Listbook.cs.

00091                         : base( parent, id )
00092                 {
00093                         imageList = new ImageList( 32, 32 );
00094 
00095                         // load bitmaps
00096                         for ( int i = 1; i < 16; ++i )
00097                         {
00098                                 Bitmap bmp = new Bitmap( String.Format( "../Samples/Listbook/bmp/toblom{0}.png", 
00099                                         i.ToString().PadLeft( 2, '0' ) ) );
00100                                 imageList.Add( bmp );
00101                         }
00102 
00103                         AssignImageList( imageList );
00104 
00105                         for ( int i = 1; i < 16; ++i )
00106                         {
00107                                 ListbookPanel p = new ListbookPanel( this, -1, i );
00108                                 AddPage( p , String.Format( "Picture {0}    ", i ), false, i - 1 );
00109                         } 
00110 
00111                         EVT_LISTBOOK_PAGE_CHANGED( -1, new EventListener( OnPageChanged ) );
00112                         EVT_LISTBOOK_PAGE_CHANGING( -1, new EventListener( OnPageChanging ) );
00113                 }


Member Function Documentation

void wx.SampleListbook.MyListbook.OnPageChanged ( object  sender,
Event  e 
)

Definition at line 117 of file Listbook.cs.

00118                 {
00119                         ListbookEvent le = (ListbookEvent) e;
00120 
00121                         Log.LogMessage( "OnPageChanged, old: " + le.OldSelection + ", " +
00122                                 "new: " + le.Selection + ", Selection: " + this.Selection );
00123 
00124                         e.Skip();
00125                 }

void wx.SampleListbook.MyListbook.OnPageChanging ( object  sender,
Event  e 
)

Definition at line 129 of file Listbook.cs.

00130                 {
00131                         ListbookEvent le = (ListbookEvent) e;
00132 
00133                         Log.LogMessage( "OnPageChanging, old: " + le.OldSelection + ", " +
00134                                 "new: " + le.Selection + ", Selection: " + this.Selection );
00135 
00136                         e.Skip();
00137                 }


Member Data Documentation

ImageList wx.SampleListbook.MyListbook.imageList

Definition at line 86 of file Listbook.cs.


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