| View previous topic :: View next topic |
| Author |
Message |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Tue Jul 27, 2004 1:08 pm Post subject: Position of List Selection |
|
|
Hi,
is there a way to get the exact position (top, left, widht and height) of a selection in a table element ?
I was thinking about multiplicating the table-item-height with the count of items, but maybe there is a way thats more exactly ?
Bye, Fabian |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Tue Jul 27, 2004 7:26 pm Post subject: |
|
|
XTools,
Take a look at the following Win32 API message ID's LVM_GETITEMRECT and LVM_GETSUBITEMRECT since the VDS Table element is actually a ListView control in Windows. Sorry I don't have time to build an example using these messages with VDS @Sendmsg but I am sure if you have a problem someone here should be able to help you out. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Wed Jul 28, 2004 6:16 am Post subject: |
|
|
Hi,
thanks for that info.
Bye, Fabian |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu Jul 29, 2004 1:00 pm Post subject: |
|
|
XTools,
Maybe if CodeScript has some time he could add this to his VDS TABLE Control API DSU if these are not already a part of his *.DSU Anyway I hope that helps. Also there is always VDSOBJ's string grid control that would probally be more suited for what your trying to do since it is a true Grid and the VDS TABLE is just a ListView control which has many limitations when compared to a Grid control. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
X-Tools Valued Contributor

Joined: 20 Sep 2001 Posts: 296 Location: Germany
|
Posted: Thu Jul 29, 2004 1:53 pm Post subject: |
|
|
Hi,
thanks for your answer.
I am already working with both list / grid controls. I will see what will work for me.
Bye, Fabian |
|
| Back to top |
|
 |
|