Print Page | Close Window

AdvDualListbox

Printed From: TMS Software
Category: General
Forum Name: Feature Requests
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=3534
Printed Date: 16 Oct 2019 at 6:46pm


Topic: AdvDualListbox
Posted By: Sachs Gerhard
Subject: AdvDualListbox
Date Posted: 17 Mar 2014 at 4:32am



Replies:
Posted By: Sachs Gerhard
Date Posted: 17 Mar 2014 at 4:37am
Sorry, first post did not accept text in this field.
AdvDualList has events when movong between left and right.
However this events fire before moving.
I am looking for a way to detect if a list has been emptied.
So there should be an event that fires after moving.
Regards
Gerhard sachs


Posted By: Bruno Fierens
Date Posted: 18 Mar 2014 at 5:15am
Next update will have a new event OnListsChanged that will be triggered after any move or copy operation


Posted By: Sachs Gerhard
Date Posted: 18 Mar 2014 at 7:40am
That will solve my Problem, thank you.

Another suggestion is, that the Multiselect Flag should not be observed by the Selectall / MoveSelection etc. methods.
I think it makes sense to have a way to prevent the user from multiselecting, but a call to SelectAll should always do what the Name implies.
In my opinion, Multiselect should be a user Interface flag, but the programmer should not be blocked by it.

This is a rather unimportant restriction, no Need to invest much work to it.

Regards
Gerhard Sachs


Posted By: Bruno Fierens
Date Posted: 18 Mar 2014 at 3:03pm
Sorry, I'm not sure what you mean.
1) there is no SelectAll method in TAdvDualListBox
2) irrespective of MultiSelect property, methods MoveLeftRightAll and MoveRightLeftAll move all items from left to right or vice versa.


Posted By: Sachs Gerhard
Date Posted: 19 Mar 2014 at 3:18am
with listboxAirChannels do begin
     LeftList.MultiSelect := true;
     LeftList.SelectAll;
     LeftList.MoveSelection(RightList);

This is the way I do it now.
I did not know that other methods are available.

What about help or documentation ?
On your Website I could not find help nor samples.

Regards
Gerhard Sachs


Posted By: Bruno Fierens
Date Posted: 19 Mar 2014 at 3:48am
AdvDualListBox1.LeftList and AdvDualListBox1.RightList are VCL TListbox classes, so these will behave exactly the same way a regular VCL TListBox behaves. That also means that, consistent with the VCL TListBox, performing listbox.SelectAll has no effect when ListBox.MultiSelect = false.



Print Page | Close Window