Page 1 of 1

Range Slider Control

PostPosted: Tue Jun 14, 2016 6:23 pm
by Silvio.Falconi
How create this ?

Image

Re: Range Slider Control

PostPosted: Thu Jun 23, 2016 7:33 am
by AntoninoP
Hi,
In Win32 there is the trackBar control
It is in fiveWin called TTrackBall look at trbar example
Regards,

Re: Range Slider Control

PostPosted: Thu Jun 23, 2016 4:20 pm
by Silvio.Falconi
Antonino,
this class not have two bar but only one and I cannot build an interval
type from to as the control winword have

Re: Range Slider Control

PostPosted: Fri Jun 24, 2016 7:19 am
by AntoninoP
I am not trying, if you create it with lSelRange true it allow to select a range.
the getRange is missing ... it should be something like:
Code: Select all  Expand view
#define TBM_GETRANGEMIN         (WM_USER+1)
#define TBM_GETRANGEMAX         (WM_USER+2)

Code: Select all  Expand view
METHOD GetRangeMin() INLINE ::nMin := ::SendMsg( TBM_GETRANGEMIN, 0, 0 )
METHOD GetRangeMax() INLINE ::nMax := ::SendMsg( TBM_GETRANGEMAX, 0, 0 )

but i don't try it.

Re: Range Slider Control

PostPosted: Fri Jun 24, 2016 8:42 am
by Silvio.Falconi
Antonino,
I need it for create tab paragraph on Richedit
I create a small pad ( FivePad)

Image

I insert tregla class to simulate the ruler but it not have the track to set paragraph