]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/gizmos/editlbox/test.cpp
1 // For compilers that support precompilation, includes "wx/wx.h".
8 // for all others, include the necessary headers (this file is usually all you
9 // need because it includes almost all "standard" wxWidgets headers)
14 #include "wx/gizmos/editlbox.h"
17 class MyApp
: public wxApp
20 virtual bool OnInit();
28 wxDialog
dlg(NULL
, -1, _("Test dialog"), wxDefaultPosition
, wxDefaultSize
,
29 wxDEFAULT_DIALOG_STYLE
| wxRESIZE_BORDER
);
31 wxSizer
*sizer
= new wxBoxSizer(wxVERTICAL
);
32 sizer
->Add(new wxEditableListBox(&dlg
, -1, _("Match these wildcards:"),
33 wxDefaultPosition
,wxSize(300,200)),
34 1, wxEXPAND
|wxALL
, 10);
38 wxEditableListBox
*lb
= new wxEditableListBox(&dlg
, -1, _("Except:"),
39 wxDefaultPosition
,wxSize(300,200));
46 sizer
->Add(lb
, 1, wxEXPAND
|wxALL
, 10);
50 sizer
->Add(new wxButton(&dlg
, wxID_OK
, _("OK")), 0, wxALIGN_RIGHT
| wxALL
, 10);
51 dlg
.SetAutoLayout(TRUE
);
58 wxString res
= _("'Except' contains these strings:\n\n");
60 for (size_t i
= 0; i
< ar
.GetCount(); i
++)
61 res
<< ar
[i
] << _T("\n");