Page 1 of 1

Slider

PostPosted: 27 May 2014 14:16
by Lynkin
Hi,

I'm using the JQSlider for this volume option on this application i'm doing, all i need to do is update a label with the current value of the slider.. i'm trying to make this on the Slider On Change option like this:

delphi code
procedure TFrm_Aux_Fala_Execucao.sliderVelJQEventsChange(Sender: TObject;
AParams: TStringList);
begin
CDS_RegisterSPEAKER_VOLUME.AsInteger := sliderVel.ZIndex;
end;

I could achieve this result on Delphi by using "sliderVel.Position"...

What should i use to get the same result on JQSlider ?

Re: Slider

PostPosted: 27 May 2014 14:23
by Jorge Sousa
Hi

You should use the plugin OnChange JQSliderOptions.OnChange instead of general jQuery events.

About

What should i use to get the same result on JQSlider ?


http://www.cgdevtools.com/docs/_html/IWCGJQSlider.TIWCGJQSliderOptions.htm

Re: Slider

PostPosted: 27 May 2014 14:37
by Alexander Bulei
Hi Lynkin,

sliderVel.ZIndex


Do you know what does the zindex property?

1st - Please check the documentation.

http://www.cgdevtools.com/docs/_html/IWCGJQSlider.htm

2nd - Please check our JQueryDemo, you can find some examples:

http://www.cgdevtools.com/demo/JQueryDemoIW14_V2_ISAPI_64.dll?frame=slider

Best Regards.

Re: Slider

PostPosted: 27 May 2014 18:13
by Lynkin
I did it by writing the following code:

delphi code
procedure TFrm_Aux_Fala_Execucao.sliderVelJQSliderOptionsChange(Sender: TObject;
AParams: TStringList);
begin
if DTS_Cadastro.State IN [dsEdit, dsInsert] then
CDS_CadastroFALA_VEL.AsInteger := sliderVel.JQSliderOptions.Value;
end;


It's working now! Thanks