# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1305707366 0 # Node ID 814e4767277f2ba87496ec424084d1ba1f95360e # Parent 8188f818eb9f1d0572f6753677cb520771b1da94 Set initial range of spin buttons to -65536 to 65536 on OS/2. Also allow initial value to be set from the text field. diff -r 8188f818eb9f -r 814e4767277f os2/dw.c --- a/os2/dw.c Wed May 18 08:20:00 2011 +0000 +++ b/os2/dw.c Wed May 18 08:29:26 2011 +0000 @@ -5335,6 +5335,8 @@ NULL, NULL); HWND entry = _find_entryfield(tmp); + WinSendMsg(tmp, SPBM_SETLIMITS, MPFROMLONG(65536), MPFROMLONG(-65536)); + WinSendMsg(tmp, SPBM_SETCURRENTVALUE, MPFROMLONG(atoi(text)), 0L); blah->oldproc = WinSubclassWindow(tmp, _entryproc); WinSetWindowPtr(tmp, QWP_USER, blah); blah = calloc(sizeof(WindowData), 1); @@ -6709,7 +6711,7 @@ long tmpval = 0L; WinSendMsg(handle, SPBM_QUERYVALUE, (MPARAM)&tmpval,0L); - return tmpval; + return tmpval; } /*