Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: isCheched of a TListBox in FMX



Permlink Replies: 0
Dario Giacomelli

Posts: 1
Registered: 4/15/06
isCheched of a TListBox in FMX
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 1, 2014 3:56 AM
I have XE7 since few days. I was trying to create an equivalent of TcheckListbox ...

I am trying to read che checkbox of a TListBox. I have populated it, ok,
but i can't read the status of the checkbox.

ListBox1.ListItems[ListBox1.ItemIndex].IsChecked

is always false, but i see a true flag graphically.

Here i'm trying also to uncheck wher user do double click on the listbox items.

procedure TForm1.ListBox1DblClick(Sender: TObject);
var
ListBoxItem : TListBoxItem;
begin

ListBox1.ListItems[ListBox1.ItemIndex].IsChecked :=
not ListBox1.ListItems[ListBox1.ItemIndex].IsChecked ;

end;

Thanks for help ..
Dario

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02