Re: Yet another TListBox and TOpenDialog problem! :S


[ Delphi Forum -- by DelphiLand ]

Posted by WAllison on November 16, 2003
In Reply to: Yet another TListBox and TOpenDialog problem! :S posted by Joey on November 15, 2003

: I have a 2 questions to ask in this post so:
: 1. How do i use the .MoveSelected() function as i cant seem to get any thing working :(, i dont know what to put between the bracated to move items up and down.
: 2. When i have multi-select on in the TOpenDialog and i select items i want it to show up in the files in the order i selected them but it doesnt! It puts it in order of what is first in the folder (my apps designed for this not to happen, its whole purpose). How can i get it so it adds them to my TListBox in the order i selected them not the order they come in the folder??

---------------

1. Moveselection(CustomListControl: TCustomListControl) - as far as i know - this is for moving items from one listbox to another (not the same listbox - somebody prove me wrong please!)

ListBox.MoveSelection(ListBox2); - ive tried this it works(D7);

2. OpenDialog - every file u select gets added to the start of the list (so it does save them in the right order) - ive tested this (D7).

 


Related Articles and Replies:


[ Delphi Forum ]
[ DelphiLand: free Delphi source code, tips, tutorials ]