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:
Artur Wieczorek
2017-07-16 19:11:16 +02:00
parent 9994288688
commit 836bbcbfcb
2 changed files with 3 additions and 3 deletions

View File

@@ -105,7 +105,7 @@
// x position adjustment for wxTextCtrl (and like)
// left margin cannot be set with wxTextEntry::SetMargins()
#define wxPG_TEXTCTRLXADJUST 0
#define wxPG_TEXTCTRLXADJUST 1
// comment to use bitmap buttons
#define wxPG_ICON_WIDTH 11

View File

@@ -103,7 +103,7 @@
#define wxPG_TEXTCTRLYADJUST 0
#elif defined(__WXMAC__)
// *not* tested
// partially tested
#define wxPG_CHECKMARK_XADJ 4
#define wxPG_CHECKMARK_YADJ 4
#define wxPG_CHECKMARK_WADJ -6
@@ -112,7 +112,7 @@
#define wxPG_NAT_BUTTON_BORDER_Y 0
#define wxPG_TEXTCTRLYADJUST 0
#define wxPG_TEXTCTRLYADJUST 1
#else
// defaults