mirror of https://github.com/odrling/Aegisub
Made call tips vanish when the text edit loses focus.
Originally committed to SVN as r788.
This commit is contained in:
parent
40e113d368
commit
a33692c852
|
@ -149,6 +149,7 @@ SubsTextEditCtrl::~SubsTextEditCtrl() {
|
||||||
// Control event table
|
// Control event table
|
||||||
BEGIN_EVENT_TABLE(SubsTextEditCtrl,wxScintilla)
|
BEGIN_EVENT_TABLE(SubsTextEditCtrl,wxScintilla)
|
||||||
EVT_MOUSE_EVENTS(SubsTextEditCtrl::OnMouseEvent)
|
EVT_MOUSE_EVENTS(SubsTextEditCtrl::OnMouseEvent)
|
||||||
|
EVT_KILL_FOCUS(SubsTextEditCtrl::OnLoseFocus)
|
||||||
|
|
||||||
EVT_MENU(EDIT_MENU_SPLIT_PRESERVE,SubsTextEditCtrl::OnSplitLinePreserve)
|
EVT_MENU(EDIT_MENU_SPLIT_PRESERVE,SubsTextEditCtrl::OnSplitLinePreserve)
|
||||||
EVT_MENU(EDIT_MENU_SPLIT_ESTIMATE,SubsTextEditCtrl::OnSplitLineEstimate)
|
EVT_MENU(EDIT_MENU_SPLIT_ESTIMATE,SubsTextEditCtrl::OnSplitLineEstimate)
|
||||||
|
@ -165,6 +166,14 @@ BEGIN_EVENT_TABLE(SubsTextEditCtrl,wxScintilla)
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
|
|
||||||
|
//////////////
|
||||||
|
// Lose focus
|
||||||
|
void SubsTextEditCtrl::OnLoseFocus(wxFocusEvent &event) {
|
||||||
|
CallTipCancel();
|
||||||
|
event.Skip();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//////////////
|
//////////////
|
||||||
// Set styles
|
// Set styles
|
||||||
void SubsTextEditCtrl::SetStyles() {
|
void SubsTextEditCtrl::SetStyles() {
|
||||||
|
|
|
@ -87,6 +87,7 @@ private:
|
||||||
void OnUseThesaurusSuggestion(wxCommandEvent &event);
|
void OnUseThesaurusSuggestion(wxCommandEvent &event);
|
||||||
void OnSetDicLanguage(wxCommandEvent &event);
|
void OnSetDicLanguage(wxCommandEvent &event);
|
||||||
void OnSetThesLanguage(wxCommandEvent &event);
|
void OnSetThesLanguage(wxCommandEvent &event);
|
||||||
|
void OnLoseFocus(wxFocusEvent &event);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SubsEditBox *control;
|
SubsEditBox *control;
|
||||||
|
|
Loading…
Reference in New Issue