Mercurial > dwindows
changeset 1024:814e4767277f
Set initial range of spin buttons to -65536 to 65536 on OS/2.
Also allow initial value to be set from the text field.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 18 May 2011 08:29:26 +0000 |
parents | 8188f818eb9f |
children | 3573878d1239 |
files | os2/dw.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; } /*