Enable/disable the OK button in the TPP dialog when styles are (un)checked

Originally committed to SVN as r6387.
This commit is contained in:
Thomas Goyne 2012-01-27 23:35:31 +00:00
parent 049c730813
commit 0bff490b7e
2 changed files with 2 additions and 0 deletions

View file

@ -234,6 +234,7 @@ DialogTimingProcessor::DialogTimingProcessor(agi::Context *c)
CenterOnParent();
Bind(wxEVT_COMMAND_CHECKBOX_CLICKED, bind(&DialogTimingProcessor::UpdateControls, this));
Bind(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, bind(&DialogTimingProcessor::UpdateControls, this));
Bind(wxEVT_COMMAND_BUTTON_CLICKED, &DialogTimingProcessor::OnApply, this, wxID_OK);
all->Bind(wxEVT_COMMAND_BUTTON_CLICKED, bind(&DialogTimingProcessor::CheckAll, this, true));
none->Bind(wxEVT_COMMAND_BUTTON_CLICKED, bind(&DialogTimingProcessor::CheckAll, this, false));

View file

@ -206,6 +206,7 @@ SubsEditBox::SubsEditBox(wxWindow *parent, agi::Context *context)
// Text editor
TextEdit = new SubsTextEditCtrl(this, wxSize(300,50), wxBORDER_SUNKEN, c);
TextEdit->Bind(wxEVT_KEY_DOWN, &SubsEditBox::OnKeyDown, this);
Bind(wxEVT_KEY_DOWN, &SubsEditBox::OnKeyDown, this);
BottomSizer = new wxBoxSizer(wxHORIZONTAL);
BottomSizer->Add(TextEdit,1,wxEXPAND,0);