CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Slider

by Lynkin » 27 May 2014 14:16

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 ?
Lynkin
 
Posts: 26
Joined: 24 Apr 2014 19:53

by Jorge Sousa » 27 May 2014 14:23

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
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by Alexander Bulei » 27 May 2014 14:37

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.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by Lynkin » 27 May 2014 18:13

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
Lynkin
 
Posts: 26
Joined: 24 Apr 2014 19:53


Return to JQSlider

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.