24 wxBoxSizer* BoxSizer1;
25 wxBoxSizer* BoxSizer2;
26 wxButton* buttonCancel;
29 Create(0, wxID_ANY, _(
"Value to display \?"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T(
"wxID_ANY"));
30 BoxSizer1 =
new wxBoxSizer(wxVERTICAL);
31 choiceFilter =
new wxChoice(
this, idChoiceFilter, wxDefaultPosition, wxDefaultSize, 0, 0, 0, wxDefaultValidator, _T(
"idChoiceFilter"));
32 BoxSizer1->Add(choiceFilter, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
33 BoxSizer2 =
new wxBoxSizer(wxHORIZONTAL);
34 buttonCancel =
new wxButton(
this, wxID_CANCEL, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T(
"wxID_CANCEL"));
35 BoxSizer2->Add(buttonCancel, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
36 buttonOK =
new wxButton(
this, wxID_OK, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, _T(
"wxID_OK"));
37 BoxSizer2->Add(buttonOK, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
38 BoxSizer1->Add(BoxSizer2, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL, 5);
41 BoxSizer1->SetSizeHints(
this);
47 if ( !pdb->FillChoice (choiceFilter, tid) )
48 wxLogError (
"Initialization of choiceFilter failed (yatishDlgFilter)");
50 choiceFilter->SetValidator ( wxGenericValidator (&choice) );
51 Fit(); SetMaxSize ( GetSize() );
53 if ( choiceFilter->IsEmpty() ) buttonOK->Disable();
62 TransferDataFromWindow();
Interacts with yatish tables in a SQLite database.
void AddToFilter(tableID, int)
Adds a condition to the WHERE clause of FillList().
static const long idChoiceFilter
void OnButtonOK(wxCommandEvent &event)