15 #include <wx/bitmap.h>
18 #include <wx/stattext.h>
19 #include <wx/button.h>
22 #include "wx/imaglist.h"
75 bool CTreeDemoDlg::Create( wxWindow* parent, wxWindowID
id,
const wxString& caption,
const wxPoint& pos,
const wxSize&
size,
long style )
78 SetExtraStyle(wxWS_EX_BLOCK_EVENTS);
79 wxDialog::Create( parent,
id, caption, pos,
size, style );
84 GetSizer()->SetSizeHints(
this);
124 wxBoxSizer* itemBoxSizer2 =
new wxBoxSizer(wxVERTICAL);
125 itemDialog1->SetSizer(itemBoxSizer2);
128 itemBoxSizer2->Add(
m_Tree, 0, wxALIGN_LEFT|wxALL, 5);
130 wxStaticLine* itemStaticLine4 =
new wxStaticLine( itemDialog1, wxID_STATIC, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
131 itemBoxSizer2->Add(itemStaticLine4, 0, wxGROW|wxALL, 5);
133 wxStdDialogButtonSizer* itemStdDialogButtonSizer5 =
new wxStdDialogButtonSizer;
135 itemBoxSizer2->Add(itemStdDialogButtonSizer5, 0, wxALIGN_RIGHT|wxALL, 5);
136 wxButton* itemButton6 =
new wxButton( itemDialog1, wxID_OK,
_(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
137 itemStdDialogButtonSizer5->AddButton(itemButton6);
139 wxButton* itemButton7 =
new wxButton( itemDialog1, wxID_CANCEL,
_(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
140 itemStdDialogButtonSizer5->AddButton(itemButton7);
142 itemStdDialogButtonSizer5->Realize();
static bool ShowToolTips()
Should we show tooltips?
void Init()
Initialises member variables.
~CTreeDemoDlg()
Destructor.
wxBitmap GetBitmapResource(const wxString &name)
Retrieves bitmap resources.
bool Create(wxWindow *parent, wxWindowID id=10001, const wxString &caption=_("Tree With Checkboxes"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(400, 300), long style=wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL)
Creation.
wxIcon GetIconResource(const wxString &name)
Retrieves icon resources.
void CreateControls()
Creates the controls and sizers.
CTreeDemoDlg()
Constructors.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::SIZE size