Author |
Topic: slider parameters & minimal value (Read 866 times) |
|
dynamic35
New Member
member is offline


Gender: 
Posts: 34
|
 |
Re: slider parameters & minimal value
« Reply #2 on: Mar 9th, 2012, 09:17am » |
|
on Mar 8th, 2012, 3:06pm, Richard Russell wrote:
INSTALL @lib$+"WINLIB3" REM RULER with negative and positive datas Test by XP , date: 9.3.2012/dyn35 xpos%=120 :ypos%=25 : width%=400 : height%=30 P%=-40 : S%=50 T%=800 : REM Style 800 puts x numbers automatically above moving rulerhand TBM_SETRANGEMIN=1031 tb%= FN_createtrackbar(@hwnd%,xpos%,ypos%,width%,height%,T%) REPEAT SYS "SendMessage", !tb%, TBM_SETRANGEMIN, 1, P% PROC_showtrackbar(tb%, S%) trackpos%= FN_trackbarpos(tb%) CLS : PRINT TAB(1,2)"x=";trackpos% WAIT 20 UNTIL FALSE PROC_removetrackbar(tb%) END This seems to work now Thankyous from Dynamic35. Ps. Style 800 was an 'accidental' finding and I like it since it seems to work in my XP
|
|
Logged
|
|
|
|
admin
Administrator
member is offline


Posts: 1145
|
 |
Re: slider parameters & minimal value
« Reply #3 on: Mar 9th, 2012, 10:53am » |
|
on Mar 9th, 2012, 09:17am, dynamic35 wrote:| Style 800 was an 'accidental' finding and I like it since it seems to work in my XP |
|
Right, so that's 800 decimal, therefore &320 hexadecimal, which is:
Code:TBS_REVERSED + TBS_TOOLTIPS + TBS_ENABLESELRANGE I suspect the 'little numbers' you referred to are simply the tooltips created by the TBS_TOOLTIPS style.
Richard.
|
|
Logged
|
|
|
|
|