From 9018abe3ef28d237b0421c8d96987907adbe5532 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 28 Feb 1999 14:18:05 +0000 Subject: [PATCH] shows different SetCursor() calls git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/controls/controls.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index 3a6139014e..6a45c6ac39 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -193,6 +193,7 @@ bool MyApp::OnInit() frame->SetMenuBar(menu_bar); frame->Show(TRUE); + frame->SetCursor(wxCursor(wxCURSOR_HAND)); SetTopWindow(frame); @@ -497,13 +498,14 @@ m_text(NULL), m_notebook(NULL) wxString choices2[] = { - "Wonderful", - "examples.", + "First", "Second", "Third", + "Fourth", "Fifth", //"Sixth", + //"Seventh", "Eighth", "Nineth", "Tenth" }; panel = new wxPanel(m_notebook); - (void)new wxRadioBox( panel, ID_RADIOBOX, "That", wxPoint(10,160), wxSize(-1,-1), 2, choices2, 1, wxRA_SPECIFY_ROWS ); - m_radio = new wxRadioBox( panel, ID_RADIOBOX, "This", wxPoint(10,10), wxSize(-1,-1), 5, choices, 1, wxRA_SPECIFY_COLS ); + (void)new wxRadioBox( panel, ID_RADIOBOX, "That", wxPoint(10,160), wxSize(-1,-1), WXSIZEOF(choices2), choices2, 1, wxRA_SPECIFY_ROWS ); + m_radio = new wxRadioBox( panel, ID_RADIOBOX, "This", wxPoint(10,10), wxSize(-1,-1), WXSIZEOF(choices), choices, 1, wxRA_SPECIFY_COLS ); (void)new wxButton( panel, ID_RADIOBOX_SEL_NUM, "Select #2", wxPoint(180,30), wxSize(140,30) ); (void)new wxButton( panel, ID_RADIOBOX_SEL_STR, "Select 'This'", wxPoint(180,80), wxSize(140,30) ); m_fontButton = new wxButton( panel, ID_SET_FONT, "Set more Italic font", wxPoint(340,30), wxSize(140,30) ); -- 2.47.2