gsdx-gui: Allow only digit inputs in osd edit boxes for font size, timeout, and max logs.

This commit is contained in:
lightningterror 2019-07-15 21:41:30 +02:00
parent 6ccc4911c5
commit 557f50fb4e
1 changed files with 3 additions and 3 deletions

View File

@ -205,7 +205,7 @@ BEGIN
// Font Settings
GROUPBOX "Font",IDC_STATIC,7,20,196,100,0,WS_EX_TRANSPARENT
LTEXT "Size:",IDC_OSD_SIZE_TEXT,16,34,25,8
EDITTEXT IDC_OSD_SIZE_EDIT,112,31,84,14,ES_RIGHT | ES_AUTOHSCROLL
EDITTEXT IDC_OSD_SIZE_EDIT,112,31,84,14,ES_RIGHT | ES_AUTOHSCROLL | ES_NUMBER
CONTROL "",IDC_OSD_SIZE,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS,0,0,11,14
LTEXT "Red:",IDC_OSD_COLOR_RED_TEXT,16,51,25,8
CONTROL "",IDC_OSD_COLOR_RED_SLIDER,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,107,49,76,15
@ -222,10 +222,10 @@ BEGIN
// Log Settings
GROUPBOX "Log Messages",IDC_STATIC,7,125,196,52,0,WS_EX_TRANSPARENT
LTEXT "Timeout (seconds):",IDC_OSD_TIMEOUT_TEXT,16,139,75,8
EDITTEXT IDC_OSD_TIMEOUT_EDIT,112,135,84,14,ES_RIGHT | ES_AUTOHSCROLL
EDITTEXT IDC_OSD_TIMEOUT_EDIT,112,135,84,14,ES_RIGHT | ES_AUTOHSCROLL | ES_NUMBER
CONTROL "", IDC_OSD_TIMEOUT,"msctls_updown32", UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS,0,0,11,14
LTEXT "Max:",IDC_OSD_MAX_LOG_TEXT,16,158,25,8
EDITTEXT IDC_OSD_MAX_LOG_EDIT,112,155,84,14,ES_RIGHT | ES_AUTOHSCROLL
EDITTEXT IDC_OSD_MAX_LOG_EDIT,112,155,84,14,ES_RIGHT | ES_AUTOHSCROLL | ES_NUMBER
CONTROL "", IDC_OSD_MAX_LOG,"msctls_updown32", UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | UDS_NOTHOUSANDS,0,0,11,14
// OK/CANCEL
DEFPUSHBUTTON "OK",IDOK,52,183,50,14