Recent

Author Topic: Drag and Drop  (Read 1692 times)

HatForCat

  • Sr. Member
  • ****
  • Posts: 293
Drag and Drop
« on: February 12, 2017, 12:22:16 am »
Hi, I want to drag an item from a DBGrid (Emails) to another DBGrid (Accounts)

I need to drop the Data on a specif Row of the Emails grid that is currently not selected.

How do I find the underlying Grid-Cell and thus the Account, the Mouse cursor is over?

Code: [Select]
[font=courier]
ASCII-art
Accounts-grid                                  Emails-grid
  Acct1                                        Email1
 [Acct2]<-- Selected Account                   Email2
  Acct3                                        Email3
  Acct4                                        Email4
  Acct5                                        Email5
  Acct6  <---drag to here----------------------Email6
  Acct7                                        Email7
[/font]
Acer-i5, 2.6GHz, 6GB, 500GB-SSD, Mint-19.3, Cinnamon Desktop, Lazarus 2.0.6, SQLite3

 

TinyPortal © 2005-2018