Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

AdvDualListbox

 Post Reply Post Reply
Author
Sachs Gerhard View Drop Down
New Member
New Member
Avatar

Joined: 08 Nov 2012
Posts: 32
Post Options Post Options   Quote Sachs Gerhard Quote  Post ReplyReply Direct Link To This Post Topic: AdvDualListbox
    Posted: 17 Mar 2014 at 4:32am
Back to Top
Sachs Gerhard View Drop Down
New Member
New Member
Avatar

Joined: 08 Nov 2012
Posts: 32
Post Options Post Options   Quote Sachs Gerhard Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8081
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Sachs Gerhard View Drop Down
New Member
New Member
Avatar

Joined: 08 Nov 2012
Posts: 32
Post Options Post Options   Quote Sachs Gerhard Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8081
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Sachs Gerhard View Drop Down
New Member
New Member
Avatar

Joined: 08 Nov 2012
Posts: 32
Post Options Post Options   Quote Sachs Gerhard Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8081
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down