const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr)
: wxRadioBox(parent, id, title, pos, size, n, choices, majorDim,
- style, validator, name) { }
+ style, validator, name) { SetForegroundColour(*wxRED); }
protected:
void OnFocusGot(wxFocusEvent& event)
panel = new wxPanel(m_notebook);
(void)new MyRadioBox( panel, ID_RADIOBOX, "&That", wxPoint(10,160), wxSize(-1,-1), WXSIZEOF(choices2), choices2, 1, wxRA_SPECIFY_ROWS );
m_radio = new wxRadioBox( panel, ID_RADIOBOX, "T&his", wxPoint(10,10), wxSize(-1,-1), WXSIZEOF(choices), choices, 1, wxRA_SPECIFY_COLS );
+ m_radio->SetForegroundColour(*wxRED);
#if wxUSE_TOOLTIPS
m_combo->SetToolTip("This is a natural\ncombobox - can you believe me?");
m_slider = new wxSlider( panel, ID_SLIDER, 0, 0, 200, wxPoint(18,90), wxSize(155,-1),
wxSL_AUTOTICKS | wxSL_LABELS );
m_slider->SetTickFreq(40, 0);
+ m_slider->SetToolTip(_T("This is a sliding slider"));
+
(void)new wxStaticBox( panel, -1, "&Explanation",
wxPoint(230,10), wxSize(270,130),
wxALIGN_CENTER );
}
case ID_RADIOBOX_FONT:
{
+ m_radio->SetForegroundColour(*wxGREEN);
+
m_radio->SetFont( *wxITALIC_FONT );
break;
}
#endif
s_windowFocus->GetClassInfo()->GetClassName()
#ifdef __WXMSW__
- , s_windowFocus->GetHWND()
+ , (unsigned int) s_windowFocus->GetHWND()
#endif
);
wxLogMessage( _T("Current position: %ld\nCurrent line, column: (%ld, %ld)\nNumber of lines: %ld\nCurrent line length: %ld\nTotal text length: %u (%ld)"),
pos,
line, column,
- GetNumberOfLines(),
- GetLineLength(line),
+ (long) GetNumberOfLines(),
+ (long) GetLineLength(line),
GetValue().length(),
GetLastPosition());
}
#endif
s_windowFocus
#ifdef __WXMSW__
- , s_windowFocus->GetHWND()
+ , (unsigned int) s_windowFocus->GetHWND()
#endif
);