On Mon, 2005-09-12 at 17:17 +0200, A.J. Venter wrote:
> Thanks, this is exactly what I needed, now a related question, how can I 
> determine the LAST thing that was selected ? In the order the user clicked 
> it, I need to hook up something to the onSelectionChange event that will let 
> me show a description of the current selected item, and if another is 
> selected, change to the description for the new one etc. etc.
If it works like in Delphi, ItemIndex indicates the Item which has
focus. So if you check in the onClick if the item indicated by ItemIndex
is selected, you have the information you need.
A private variable to keep track of the order of the selection of the
items may be needed in your case. (Because with a click the user can
deselect items as well.)


-- 
Matthijs Willemstein <[EMAIL PROTECTED]>


_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to