some cosmetic fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -139,7 +139,6 @@ void OwnerDrawnFrame::InitMenu()
|
|||||||
pItem = new wxMenuItem(file_menu, Menu_Test1, _T("&Uncheckable"), _T("red item"));
|
pItem = new wxMenuItem(file_menu, Menu_Test1, _T("&Uncheckable"), _T("red item"));
|
||||||
pItem->SetFont(*wxITALIC_FONT);
|
pItem->SetFont(*wxITALIC_FONT);
|
||||||
pItem->SetTextColour(wxColor(255, 0, 0));
|
pItem->SetTextColour(wxColor(255, 0, 0));
|
||||||
pItem->SetMarginWidth(23);
|
|
||||||
file_menu->Append(pItem);
|
file_menu->Append(pItem);
|
||||||
|
|
||||||
pItem = new wxMenuItem(file_menu, Menu_Test2, _T("&Checkable"),
|
pItem = new wxMenuItem(file_menu, Menu_Test2, _T("&Checkable"),
|
||||||
@@ -216,8 +215,7 @@ OwnerDrawnFrame::OwnerDrawnFrame(wxFrame *frame, wxChar *title,
|
|||||||
SetStatusText(_T("no selection"), 0);
|
SetStatusText(_T("no selection"), 0);
|
||||||
|
|
||||||
// make a panel with some controls
|
// make a panel with some controls
|
||||||
wxPanel *pPanel = new wxPanel(this, -1, wxPoint(0, 0),
|
wxPanel *pPanel = new wxPanel(this);
|
||||||
wxSize(400, 200), wxTAB_TRAVERSAL);
|
|
||||||
|
|
||||||
// check list box
|
// check list box
|
||||||
static const wxChar* aszChoices[] = { _T("Hello"), _T("world"), _T("and"),
|
static const wxChar* aszChoices[] = { _T("Hello"), _T("world"), _T("and"),
|
||||||
@@ -271,12 +269,10 @@ OwnerDrawnFrame::OwnerDrawnFrame(wxFrame *frame, wxChar *title,
|
|||||||
pPanel, // parent
|
pPanel, // parent
|
||||||
Control_Listbox2, // control id
|
Control_Listbox2, // control id
|
||||||
wxPoint(220, 10), // listbox position
|
wxPoint(220, 10), // listbox position
|
||||||
wxDefaultSize, // listbox size
|
wxSize(200, 200), // listbox size
|
||||||
WXSIZEOF(aszColors), // number of strings
|
WXSIZEOF(aszColors), // number of strings
|
||||||
astrChoices, // array of strings
|
astrChoices, // array of strings
|
||||||
wxLB_OWNERDRAW, // owner-drawn
|
wxLB_OWNERDRAW // owner-drawn
|
||||||
wxDefaultValidator, //
|
|
||||||
wxListBoxNameStr
|
|
||||||
);
|
);
|
||||||
|
|
||||||
for ( ui = 0; ui < WXSIZEOF(aszColors); ui++ )
|
for ( ui = 0; ui < WXSIZEOF(aszColors); ui++ )
|
||||||
|
Reference in New Issue
Block a user