Re: [MSEide-MSEgui-talk] About MSE TSlider.

2017-10-02 Thread fredvs
> or better Huh, to not loose the last position in the tlabel ? Yes, but it is done just after button is released by the audio thread. But ok, it is better ;-) Now the test: Perfect, smooth, direct, no delay, no "scratch". So, this works perfectly: - audio thread event to TSlider: if

Re: [MSEide-MSEgui-talk] About MSE TSlider.

2017-10-02 Thread Martin Schreiber
On Monday 02 October 2017 16:23:20 Martin Schreiber wrote: > > Use tslider.scrollbar.onafterevent and > " > procedure tmainfo.aftereventev(const sender: tcustomscrollbar; >const akind: scrolleventty; const avalue: Real); > begin > if akind = sbe_thumbposition then begin > :=

Re: [MSEide-MSEgui-talk] About MSE TSlider.

2017-10-02 Thread Martin Schreiber
On Monday 02 October 2017 15:44:32 fredvs wrote: > > >Sorry, I still do not catch ;-( > > > > And I don^t understand what you want to achieve > > OK, we are both then. :-). > > Imagine that a song is playing. > > So the audio thread sent, at each reading of the buffer, some data to the > main

Re: [MSEide-MSEgui-talk] About MSE TSlider.

2017-10-02 Thread fredvs
> >Sorry, I still do not catch ;-( > And I don^t understand what you want to achieve OK, we are both then. :-). Imagine that a song is playing. So the audio thread sent, at each reading of the buffer, some data to the main thread, like position in the sound. Then there is a synchro: the

Re: [MSEide-MSEgui-talk] About MSE TSlider.

2017-10-01 Thread Martin Schreiber
On Sunday 01 October 2017 17:45:33 fredvs wrote: > > The purpose of "accept" is to reject a value. Set it to false if you > > don't > > accept the value. > > Sorry, I still do not catch ;-( > And I don^t understand what you want to achieve. :-) Please explain the goal. Martin

Re: [MSEide-MSEgui-talk] About MSE TSlider.

2017-10-01 Thread fredvs
> The purpose of "accept" is to reject a value. Set it to false if you don't accept the value. Sorry, I still do not catch ;-( Concretely, what must I change in code ? What Tslider event? And ainfo.eventkind = ek_buttonrelease, what Tslider event gives ainfo data? Thanks. Fre;D -- Sent

Re: [MSEide-MSEgui-talk] About MSE TSlider.

2017-10-01 Thread Martin Schreiber
On Sunday 01 October 2017 12:26:19 fredvs wrote: > > I want to assign a event only when the button is released. > > I did try with this tslider.onsetvalue: > > procedure tsongplayer2fo.changepos(const Sender: TObject; var avalue: > realty; var accept: boolean); > begin > if accept then >