: wxDialog (parent, wxID_ANY, _("Make KDMs"))
{
wxBoxSizer* vertical = new wxBoxSizer (wxVERTICAL);
: wxDialog (parent, wxID_ANY, _("Make KDMs"))
{
wxBoxSizer* vertical = new wxBoxSizer (wxVERTICAL);
wxBoxSizer* targets = new wxBoxSizer (wxHORIZONTAL);
_targets = new wxTreeCtrl (this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_HIDE_ROOT | wxTR_MULTIPLE | wxTR_HAS_BUTTONS);
wxBoxSizer* targets = new wxBoxSizer (wxHORIZONTAL);
_targets = new wxTreeCtrl (this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTR_HIDE_ROOT | wxTR_MULTIPLE | wxTR_HAS_BUTTONS);
wxBoxSizer* target_buttons = new wxBoxSizer (wxVERTICAL);
_add_cinema = new wxButton (this, wxID_ANY, _("Add Cinema..."));
wxBoxSizer* target_buttons = new wxBoxSizer (wxVERTICAL);
_add_cinema = new wxButton (this, wxID_ANY, _("Add Cinema..."));
- target_buttons->Add (_add_cinema, 1, 0, 6);
+ target_buttons->Add (_add_cinema, 1, wxEXPAND, 6);
- target_buttons->Add (_edit_cinema, 1, 0, 6);
+ target_buttons->Add (_edit_cinema, 1, wxEXPAND, 6);
- target_buttons->Add (_remove_cinema, 1, 0, 6);
+ target_buttons->Add (_remove_cinema, 1, wxEXPAND, 6);
- target_buttons->Add (_add_screen, 1, 0, 6);
+ target_buttons->Add (_add_screen, 1, wxEXPAND, 6);
- target_buttons->Add (_edit_screen, 1, 0, 6);
+ target_buttons->Add (_edit_screen, 1, wxEXPAND, 6);
- target_buttons->Add (_remove_screen, 1, 0, 6);
+ target_buttons->Add (_remove_screen, 1, wxEXPAND, 6);
targets->Add (target_buttons, 0, 0, 6);
vertical->Add (targets, 1, wxEXPAND | wxALL, 6);
wxFlexGridSizer* table = new wxFlexGridSizer (3, 2, 6);
targets->Add (target_buttons, 0, 0, 6);
vertical->Add (targets, 1, wxEXPAND | wxALL, 6);
wxFlexGridSizer* table = new wxFlexGridSizer (3, 2, 6);
_from_date = new wxDatePickerCtrl (this, wxID_ANY);
table->Add (_from_date, 1, wxEXPAND);
_from_time = new wxTimePickerCtrl (this, wxID_ANY);
table->Add (_from_time, 1, wxEXPAND);
_from_date = new wxDatePickerCtrl (this, wxID_ANY);
table->Add (_from_date, 1, wxEXPAND);
_from_time = new wxTimePickerCtrl (this, wxID_ANY);
table->Add (_from_time, 1, wxEXPAND);
_until_date = new wxDatePickerCtrl (this, wxID_ANY);
table->Add (_until_date, 1, wxEXPAND);
_until_time = new wxTimePickerCtrl (this, wxID_ANY);
table->Add (_until_time, 1, wxEXPAND);
_until_date = new wxDatePickerCtrl (this, wxID_ANY);
table->Add (_until_date, 1, wxEXPAND);
_until_time = new wxTimePickerCtrl (this, wxID_ANY);
table->Add (_until_time, 1, wxEXPAND);
- add_label_to_sizer (table, this, "Write to");
+ add_label_to_sizer (table, this, "Write to", true);
vertical->Add (table, 0, wxEXPAND | wxALL, 6);
vertical->Add (table, 0, wxEXPAND | wxALL, 6);