CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Bug in change event?

by Soren SDF » 03 Oct 2013 10:28

Hi.

I've written an event handler to do something like this:
VAR
Test: Integer;
BEGIN
Test:=TIWCGJQMSelectBoxItem(TIWCGJQMSelectBoxEvents(Sender).owner).Index;
END;
The index returned is always 0 regardless of what item is selected.

Any ideas?

Sören
Soren SDF
 
Posts: 87
Joined: 19 Apr 2013 15:56

by Alexander Bulei » 03 Oct 2013 10:53

Hi Soren,

Soren SDF wrote:Hi.

I've written an event handler to do something like this:
VAR
Test: Integer;
BEGIN
Test:=TIWCGJQMSelectBoxItem(TIWCGJQMSelectBoxEvents(Sender).owner).Index;
END;
The index returned is always 0 regardless of what item is selected.

Any ideas?

Sören


You should use "ItemIndex" :

delphi code
IWCGJQMSelect1.SelectBoxList.Items[0].ItemIndex


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 Soren SDF » 03 Oct 2013 11:24

Thanx.

Sören
Soren SDF
 
Posts: 87
Joined: 19 Apr 2013 15:56


Return to JQMSelect

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.