-
- (void) new wxButton( this, -1, "wxButton", wxPoint(10,10) );
-
- (void) new wxTextCtrl( this, -1, "wxTextCtrl", wxPoint(10,50) );
-
- (void) new wxRadioButton( this, -1, "Disable", wxPoint(10,90) );
-
- (void) new wxComboBox( this, -1, "This", wxPoint(10,130), wxDefaultSize, 5, choices );
-
- (void) new wxRadioBox( this, -1, "This", wxPoint(10,200), wxDefaultSize, 5, choices, 2, wxRA_SPECIFY_COLS );
-
- (void) new wxRadioBox( this, -1, "This", wxPoint(10,300), wxDefaultSize, 5, choices, 2, wxRA_SPECIFY_ROWS );
-
- wxListCtrl *m_listCtrl = new wxListCtrl(
- this, -1, wxPoint(200, 10), wxSize(180, 120),
- wxLC_REPORT | wxSUNKEN_BORDER | wxLC_SINGLE_SEL );
-
- m_listCtrl->InsertColumn(0, "First", wxLIST_FORMAT_LEFT, 90);
- m_listCtrl->InsertColumn(1, "Last", wxLIST_FORMAT_LEFT, 90);
-
- for ( int i=0; i < 30; i++)
- {
- char buf[20];
- sprintf(buf, "Item %d", i);
- m_listCtrl->InsertItem(i, buf);
- }
- m_listCtrl->SetItemState( 3, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED );
-
- (void) new wxListBox( this, -1, wxPoint(200,180), wxSize(180,120), 5, choices, wxLB_ALWAYS_SB );
-
- SetBackgroundColour( "WHEAT" );
+
+ m_button = new wxButton( this, ID_QUERYPOS, "Query position", wxPoint(10,110) );
+
+ (void) new wxTextCtrl( this, -1, "wxTextCtrl", wxPoint(10,150), wxSize(80,-1) );
+
+ (void) new wxRadioButton( this, -1, "Disable", wxPoint(10,190) );
+
+ (void) new wxComboBox( this, -1, "This", wxPoint(10,230), wxDefaultSize, 5, choices );
+
+ (void) new wxRadioBox( this, -1, "This", wxPoint(10,310), wxDefaultSize, 5, choices, 2, wxRA_SPECIFY_COLS );
+
+ (void) new wxRadioBox( this, -1, "This", wxPoint(10,440), wxDefaultSize, 5, choices, 2, wxRA_SPECIFY_ROWS );
+
+ wxListCtrl *m_listCtrl = new wxListCtrl(
+ this, -1, wxPoint(200, 110), wxSize(180, 120),
+ wxLC_REPORT | wxSIMPLE_BORDER | wxLC_SINGLE_SEL );
+
+ m_listCtrl->InsertColumn(0, "First", wxLIST_FORMAT_LEFT, 90);
+ m_listCtrl->InsertColumn(1, "Last", wxLIST_FORMAT_LEFT, 90);
+
+ for ( int i=0; i < 30; i++)
+ {
+ char buf[20];
+ sprintf(buf, "Item %d", i);
+ m_listCtrl->InsertItem(i, buf);
+ }
+ m_listCtrl->SetItemState( 3, wxLIST_STATE_SELECTED, wxLIST_STATE_SELECTED );
+
+ (void) new wxListBox( this, -1, wxPoint(260,280), wxSize(120,120), 5, choices, wxLB_ALWAYS_SB );
+
+#endif
+
+ wxPanel *test = new wxPanel( this, -1, wxPoint(10, 110), wxSize(130,50), wxSIMPLE_BORDER | wxTAB_TRAVERSAL );
+ test->SetBackgroundColour( "WHEAT" );
+
+#if 0
+
+ wxButton *test2 = new wxButton( test, -1, "Hallo", wxPoint(10,10) );
+
+ test = new wxPanel( this, -1, wxPoint(160, 530), wxSize(130,120), wxSUNKEN_BORDER | wxTAB_TRAVERSAL );
+ test->SetBackgroundColour( "WHEAT" );
+ test->SetCursor( wxCursor( wxCURSOR_NO_ENTRY ) );
+ test2 = new wxButton( test, -1, "Hallo", wxPoint(10,10) );
+ test2->SetCursor( wxCursor( wxCURSOR_PENCIL ) );
+
+ test = new wxPanel( this, -1, wxPoint(310, 530), wxSize(130,120), wxRAISED_BORDER | wxTAB_TRAVERSAL );
+ test->SetBackgroundColour( "WHEAT" );
+ test->SetCursor( wxCursor( wxCURSOR_PENCIL ) );
+ test2 = new wxButton( test, -1, "Hallo", wxPoint(10,10) );
+ test2->SetCursor( wxCursor( wxCURSOR_NO_ENTRY ) );
+
+#endif
+
+ SetBackgroundColour( "BLUE" );
+
+ SetCursor( wxCursor( wxCURSOR_IBEAM ) );