Hi guys,
I am building a chat application, and in this application is a TTreeView component that displays the list of contacts. This works great. I then implemented "WMDROPFILES" so they can drag 'n drop files from their desktops onto their contacts as a quick way to send data files (doc, zip, mp3, ect). This also works flawlessly.
My problem is that the user *has* to highlight the contact first in order to send something. When a file is dragged over a specific contact, it does not automatically highlight (select) them, it responds to what ever was previously highlighted.
Does anyone know how I can get it to auto-select a node (contact) in a TTreeView?
I am using :
- CodeGear Delphi 2007
- Windows Vista SP1
Thanks!
I am building a chat application, and in this application is a TTreeView component that displays the list of contacts. This works great. I then implemented "WMDROPFILES" so they can drag 'n drop files from their desktops onto their contacts as a quick way to send data files (doc, zip, mp3, ect). This also works flawlessly.
My problem is that the user *has* to highlight the contact first in order to send something. When a file is dragged over a specific contact, it does not automatically highlight (select) them, it responds to what ever was previously highlighted.
Does anyone know how I can get it to auto-select a node (contact) in a TTreeView?
I am using :
- CodeGear Delphi 2007
- Windows Vista SP1
Thanks!