wxTextEntry::SetMargins(), GetMargins() - implemented on wxMSW and wxGTK (GTK+ 2.10+); also added similar functions into wxComboCtrl, deprecated old indent-functions; wxPropertyGrid modified to use the new functionality
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -142,6 +142,20 @@ public:
|
||||
virtual wxString GetHint() const;
|
||||
|
||||
|
||||
// margins
|
||||
// -------
|
||||
|
||||
// margins are the empty space between borders of control and the text
|
||||
// itself. When setting margin, use value -1 to indicate that specific
|
||||
// margin should not be changed.
|
||||
|
||||
bool SetMargins(const wxPoint& pt)
|
||||
{ return DoSetMargins(pt); }
|
||||
bool SetMargins(wxCoord left, wxCoord top = -1)
|
||||
{ return DoSetMargins(wxPoint(left, top)); }
|
||||
wxPoint GetMargins() const
|
||||
{ return DoGetMargins(); }
|
||||
|
||||
protected:
|
||||
// flags for DoSetValue(): common part of SetValue() and ChangeValue() and
|
||||
// also used to implement WriteText() in wxMSW
|
||||
@@ -159,6 +173,10 @@ protected:
|
||||
// generation and also by generic hints implementation
|
||||
virtual wxWindow *GetEditableWindow() = 0;
|
||||
|
||||
// margins functions
|
||||
virtual bool DoSetMargins(const wxPoint& pt);
|
||||
virtual wxPoint DoGetMargins() const;
|
||||
|
||||
|
||||
// class which should be used to temporarily disable text change events
|
||||
//
|
||||
|
Reference in New Issue
Block a user