Defines | |
#define | wxPG_BIND_CONTROLS(binding) { wxPg::Row_binding *b = binding; |
Start binding controls to binding. | |
#define | wxPG_BIND_LIST_CONTROLS(binding) { wxPg::List_binding *b = binding; |
Start binding controls with items to binding. | |
#define | wxPG_BINDING_END() } |
End control binding. | |
#define | wxPG_BIND_CALENDAR_CTRL(calendar, field) b->bind((calendar), (field), wxPg::update_calendar_ctrl); |
Bind wxCalendarCtrl to wxPg::Data_row_provider. | |
#define | wxPG_BIND_COMBO_BOX(combo, field) b->bind((combo), (field), wxPg::update_combo_box); |
Bind wxComboBox to wxPg::Data_row_provider. | |
#define | wxPG_BIND_COMBO_CTRL(combo, field) b->bind((combo), (field), wxPg::update_combo_ctrl); |
Bind wxComboCtrl to wxPg::Data_row_provider. | |
#define | wxPG_BIND_RICH_TEXT_CTRL(text, field) b->bind((text), (field), wxPg::update_rich_text_ctrl); |
Bind wxRichTextCtrl to wxPg::Data_row_provider. | |
#define | wxPG_BIND_TEXT_CTRL(text, field) b->bind((text), (field), wxPg::update_text_ctrl); |
Bind wxTextCtrl to wxPg::Data_row_provider. | |
#define | wxPG_BIND_SPIN_CTRL(spin, field) b->bind((spin), (field), wxPg::update_spin_ctrl); |
Bind wxSpinCtrl to wxPg::Data_row_provider. | |
#define | wxPG_BIND_STATIC_TEXT(static_text, field) b->bind((static_text), (field), wxPg::update_static_text); |
Bind wxStaticText to wxPg::Data_row_provider. | |
#define | wxPG_BIND_HYPERLINK_CTRL(hyperlink, field) b->bind((hyperlink), (field), wxPg::update_hyperlink_ctrl); |
Bind wxHyperlinkCtrl to wxPg::Data_row_provider. | |
#define | wxPG_BIND_DATE_PICKER_CTRL(date_ctrl, field) b->bind((date_ctrl), (field), wxPg::update_date_picker_ctrl); |
Bind wxDatePickerCtrl to wxPg::Data_row_provider. | |
#define | wxPG_BIND_CHECK_BOX(check_box, field) b->bind((check_box), (field), wxPg::update_check_box); |
Bind wxCheckBox to wxPg::Data_row_provider. | |
#define | wxPG_BIND_GAUGE(gauge, field) b->bind((gauge), (field), wxPg::update_gauge); |
Bind wxGauge to wxPg::Data_row_provider. | |
#define | wxPG_BIND_SPIN_BUTTON(spin, field) b->bind((spin), (field), wxPg::update_spin_button); |
Bind wxSpinButton to wxPg::Data_row_provider. | |
#define | wxPG_BIND_LIST_ITEM(control, field) b->bind((control), (field), wxPg::update_item_container); |
Bind wxItemContainer to wxPg::Data_row_provider. | |
#define | wxPG_BIND_RADIO_BOX(control, field) b->bind((control), (field), wxPg::update_radio_box); |
Bind wxRadioBox to wxPg::Data_row_provider. | |
#define | wxPG_BIND_VLIST_BOX(control, field) b->bind((control), (field), wxPg::update_vlist_box); |
Bind wxVListBox to wxPg::Data_row_provider. | |
#define | wxPG_BIND_HTML_WINDOW(control, field) b->bind((control), (field), wxPg::update_html_window); |
Bind wxHtmlWindow to wxPg::Data_row_provider. | |
#define | wxPG_BIND_LIST(control, field) wxPg::bind_list_str(b, control, field); |
Bind wxItemContainer to wxPg::Result_data_provider. |
Example for using binding macros to bin controls to Data_row_provider (query is wxPg::Query, values of current row will be displayed in controls):
wxPG_BIND_CONTROLS(&query) wxPG_BIND_TEXT_CTRL(wxTextCtrl1, wxT("FIRSTNAME")) wxPG_BIND_TEXT_CTRL(wxTextCtrl2, wxT("SECONDNAME")) wxPG_BIND_DATE_PICKER_CTRL(wxDateCtrl1, wxT("BIRTHDATE")) wxPG_BIND_SPIN_CTRL(wxSpinCtrl1, wxT("CATEGORY")) wxPG_BINDING_END()
wxPG_BIND_LIST_CONTROLS(&query) wxPG_BIND_LIST(wxChoice1, wxT("COUNTRY")); wxPG_BIND_LIST(wxListBox1, wxT("REGION")); wxPG_BIND_LIST(wxComboBox1, wxT("POST_CODE")); wxPG_BINDING_END()
#define wxPG_BIND_CALENDAR_CTRL | ( | calendar, | |||
field | ) | b->bind((calendar), (field), wxPg::update_calendar_ctrl); |
Bind wxCalendarCtrl to wxPg::Data_row_provider.
#define wxPG_BIND_CHECK_BOX | ( | check_box, | |||
field | ) | b->bind((check_box), (field), wxPg::update_check_box); |
Bind wxCheckBox to wxPg::Data_row_provider.
#define wxPG_BIND_COMBO_BOX | ( | combo, | |||
field | ) | b->bind((combo), (field), wxPg::update_combo_box); |
Bind wxComboBox to wxPg::Data_row_provider.
#define wxPG_BIND_COMBO_CTRL | ( | combo, | |||
field | ) | b->bind((combo), (field), wxPg::update_combo_ctrl); |
Bind wxComboCtrl to wxPg::Data_row_provider.
#define wxPG_BIND_CONTROLS | ( | binding | ) | { wxPg::Row_binding *b = binding; |
Start binding controls to binding.
#define wxPG_BIND_DATE_PICKER_CTRL | ( | date_ctrl, | |||
field | ) | b->bind((date_ctrl), (field), wxPg::update_date_picker_ctrl); |
Bind wxDatePickerCtrl to wxPg::Data_row_provider.
#define wxPG_BIND_GAUGE | ( | gauge, | |||
field | ) | b->bind((gauge), (field), wxPg::update_gauge); |
Bind wxGauge to wxPg::Data_row_provider.
#define wxPG_BIND_HTML_WINDOW | ( | control, | |||
field | ) | b->bind((control), (field), wxPg::update_html_window); |
Bind wxHtmlWindow to wxPg::Data_row_provider.
#define wxPG_BIND_HYPERLINK_CTRL | ( | hyperlink, | |||
field | ) | b->bind((hyperlink), (field), wxPg::update_hyperlink_ctrl); |
Bind wxHyperlinkCtrl to wxPg::Data_row_provider.
This updates URL of wxHyperlinkCtrl, label is left unaffected.
#define wxPG_BIND_LIST | ( | control, | |||
field | ) | wxPg::bind_list_str(b, control, field); |
Bind wxItemContainer to wxPg::Result_data_provider.
#define wxPG_BIND_LIST_CONTROLS | ( | binding | ) | { wxPg::List_binding *b = binding; |
Start binding controls with items to binding.
#define wxPG_BIND_LIST_ITEM | ( | control, | |||
field | ) | b->bind((control), (field), wxPg::update_item_container); |
Bind wxItemContainer to wxPg::Data_row_provider.
#define wxPG_BIND_RADIO_BOX | ( | control, | |||
field | ) | b->bind((control), (field), wxPg::update_radio_box); |
Bind wxRadioBox to wxPg::Data_row_provider.
#define wxPG_BIND_RICH_TEXT_CTRL | ( | text, | |||
field | ) | b->bind((text), (field), wxPg::update_rich_text_ctrl); |
Bind wxRichTextCtrl to wxPg::Data_row_provider.
#define wxPG_BIND_SPIN_BUTTON | ( | spin, | |||
field | ) | b->bind((spin), (field), wxPg::update_spin_button); |
Bind wxSpinButton to wxPg::Data_row_provider.
#define wxPG_BIND_SPIN_CTRL | ( | spin, | |||
field | ) | b->bind((spin), (field), wxPg::update_spin_ctrl); |
Bind wxSpinCtrl to wxPg::Data_row_provider.
#define wxPG_BIND_STATIC_TEXT | ( | static_text, | |||
field | ) | b->bind((static_text), (field), wxPg::update_static_text); |
Bind wxStaticText to wxPg::Data_row_provider.
#define wxPG_BIND_TEXT_CTRL | ( | text, | |||
field | ) | b->bind((text), (field), wxPg::update_text_ctrl); |
Bind wxTextCtrl to wxPg::Data_row_provider.
#define wxPG_BIND_VLIST_BOX | ( | control, | |||
field | ) | b->bind((control), (field), wxPg::update_vlist_box); |
Bind wxVListBox to wxPg::Data_row_provider.
#define wxPG_BINDING_END | ( | ) | } |
End control binding.