PDA

View Full Version : Trackbar size



Lionheart008
09-02-2009, 14:29
hi eros, dear petr,

little question:

it's possible to get a "slider" with a smaller trackbar shape and an input field behind correspondending to/for "numbers" and "floating" values ??? I need it perhaps for a new nurbs gui button example I plan for the next release :-) the trackbar and slider kinds are different things for me, isn't it?

a little example I add here, only just a dummy layout for a vertical trackbar (slider) but it's just too big and I wish to have a input field for numbers and floating values... would be great to see it or perhaps I can help to build it??? ;)

have all a nice day,

bye, lionheart, suisse :-)

Michael Clease
09-02-2009, 18:02
frank replace this line


CONTROL ADD "msctls_trackbar32" , cbhndl, %slidervSlv2, "", 5, 5, 24, 54, %ws_child or %ws_visible or %tbs_autoticks or %tbs_vert


with these



CONTROL ADD "msctls_trackbar32" , cbhndl, %slidervSlv2, "", 5, 5, 24, 54, _
%ws_child or %ws_visible or %tbs_autoticks or %tbs_vert OR %TBS_FIXEDLENGTH
CONTROL POST cbhndl, %slidervSlv2, %TBM_SETTHUMBLENGTH, 15, 0 'wParam, lParam
CONTROL POST cbhndl, %slidervSlv2, %tbm_setlinesize , 0, 6
CONTROL POST cbhndl, %slidervSlv2, %tbm_setticfreq , 6, 0

for more info
http://msdn.microsoft.com/en-us/library/bb760234(VS.85).aspx

ErosOlmi
10-02-2009, 08:57
Thanks Michael.

Also

CONTROL ADD "msctls_trackbar32" ...
can be substituted with native

CONTROL ADD TRACKBAR ...

For the rest, I will add few new native functions.

Ciao
Eros

Lionheart008
10-02-2009, 13:35
you both are very welcome:) dear michael, eros...

I will test it the next hours... and I am curious to see the new functions :D

bye, Lionheart on the snow pipe again :-)

Lionheart008
10-02-2009, 16:41
hi all:)
short reply...

I have edited my little menu-script with two sliders with new shapes (little and big one) so I wished to have ;)

both way are ok:

CONTROL ADD TRACKBAR ...

and


CONTROL ADD "msctls_trackbar32" ...

that was new for me (control post), thanks abraxas :-) :


CONTROL POST cbhndl, %slidervSlv2, %TBM_SETTHUMBLENGTH, 15, 0 'wParam, lParam
CONTROL POST cbhndl, %slidervSlv2, %tbm_setlinesize , 0, 6
CONTROL POST cbhndl, %slidervSlv2, %tbm_setticfreq , 6, 0

thank you :-), ciao Lionheart

ErosOlmi
10-02-2009, 19:28
both way are ok:

CONTROL ADD TRACKBAR ...
and

CONTROL ADD "msctls_trackbar32" ...


Yes, sure. Both ways are ok.
CONTROL ADD {control class} is checked by thinBasic engine.
If a native thinBasic control is found it is executed natively otherwise a general form is used and passed to Windows.

Ciao
Eros