Fix positioning of TextCtrlEditor in wxPG (wxOSX)
Position of the editor associated with properties like StringProperty, IntProperty, etc. needs to be adjusted in order to display edited text at the same position as the text which is displayed as a property value prior to the editing.
This commit is contained in:
@@ -105,7 +105,7 @@
|
|||||||
|
|
||||||
// x position adjustment for wxTextCtrl (and like)
|
// x position adjustment for wxTextCtrl (and like)
|
||||||
// left margin cannot be set with wxTextEntry::SetMargins()
|
// left margin cannot be set with wxTextEntry::SetMargins()
|
||||||
#define wxPG_TEXTCTRLXADJUST 0
|
#define wxPG_TEXTCTRLXADJUST 1
|
||||||
|
|
||||||
// comment to use bitmap buttons
|
// comment to use bitmap buttons
|
||||||
#define wxPG_ICON_WIDTH 11
|
#define wxPG_ICON_WIDTH 11
|
||||||
|
@@ -103,7 +103,7 @@
|
|||||||
#define wxPG_TEXTCTRLYADJUST 0
|
#define wxPG_TEXTCTRLYADJUST 0
|
||||||
|
|
||||||
#elif defined(__WXMAC__)
|
#elif defined(__WXMAC__)
|
||||||
// *not* tested
|
// partially tested
|
||||||
#define wxPG_CHECKMARK_XADJ 4
|
#define wxPG_CHECKMARK_XADJ 4
|
||||||
#define wxPG_CHECKMARK_YADJ 4
|
#define wxPG_CHECKMARK_YADJ 4
|
||||||
#define wxPG_CHECKMARK_WADJ -6
|
#define wxPG_CHECKMARK_WADJ -6
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
|
|
||||||
#define wxPG_NAT_BUTTON_BORDER_Y 0
|
#define wxPG_NAT_BUTTON_BORDER_Y 0
|
||||||
|
|
||||||
#define wxPG_TEXTCTRLYADJUST 0
|
#define wxPG_TEXTCTRLYADJUST 1
|
||||||
|
|
||||||
#else
|
#else
|
||||||
// defaults
|
// defaults
|
||||||
|
Reference in New Issue
Block a user