Allow changing alignment styles after wxTextCtrl creation (wxOSX)
Update NSTextView/NSTextField alignment mode when wxTextCtrl alignment styles are changed with SetWindowStyleFlag(). Closes #17952.
This commit is contained in:
committed by
Artur Wieczorek
parent
cd1c3fab0c
commit
ccc513bca9
@@ -69,6 +69,7 @@ public :
|
||||
virtual void WriteText(const wxString& str) wxOVERRIDE ;
|
||||
virtual bool HasOwnContextMenu() const wxOVERRIDE { return true; }
|
||||
virtual bool SetHint(const wxString& hint) wxOVERRIDE;
|
||||
virtual void SetJustification() wxOVERRIDE;
|
||||
|
||||
virtual void controlAction(WXWidget slf, void* _cmd, void *sender) wxOVERRIDE;
|
||||
virtual bool becomeFirstResponder(WXWidget slf, void *_cmd) wxOVERRIDE;
|
||||
@@ -125,6 +126,7 @@ public:
|
||||
virtual void EnableAutomaticDashSubstitution(bool enable) wxOVERRIDE;
|
||||
|
||||
virtual wxSize GetBestSize() const wxOVERRIDE;
|
||||
virtual void SetJustification() wxOVERRIDE;
|
||||
|
||||
virtual void controlTextDidChange() wxOVERRIDE;
|
||||
|
||||
|
@@ -695,6 +695,7 @@ public :
|
||||
virtual wxSize GetBestSize() const { return wxDefaultSize; }
|
||||
|
||||
virtual bool SetHint(const wxString& WXUNUSED(hint)) { return false; }
|
||||
virtual void SetJustification();
|
||||
private:
|
||||
wxTextEntry * const m_entry;
|
||||
|
||||
|
@@ -100,6 +100,7 @@ public:
|
||||
virtual void Command(wxCommandEvent& event) wxOVERRIDE;
|
||||
|
||||
virtual bool AcceptsFocus() const wxOVERRIDE;
|
||||
virtual void SetWindowStyleFlag(long style) wxOVERRIDE;
|
||||
|
||||
// callbacks
|
||||
void OnDropFiles(wxDropFilesEvent& event);
|
||||
|
Reference in New Issue
Block a user