View previous topic :: View next topic |
Author |
Message |
uvedese Contributor
Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Wed Apr 12, 2006 7:42 pm Post subject: I need LVM_SETTOPINDEX Windows API function in TABLE element |
|
|
Hola a todos.
Alguien sabe cómo utilizar la llamada a la API de Windows para visualizar una fila determinada de una tabla. Necesito que la fila seleccionada (Index) sea visible.
Supongo que la función debería ser LVM_SETTOPINDEX pero no está descrita en la documentación de CodeScript "VDS TABLE Control API". Gracias
----
Somebody knows how to use the call to the API of Windows to visualize a determined row of a table? I need that the selected row (Index) is visible.
I suppose that the function would have to be LVM_SETTOPINDEX but it is not described in the documentation of CodeScript "VDS TABLE Control API". Thanks |
|
Back to top |
|
|
SnarlingSheep Professional Member
Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Wed Apr 12, 2006 8:34 pm Post subject: |
|
|
Actually the message is LVM_ENSUREVISIBLE.
LVM_ENSUREVISIBLE Ensures that a list-view item is either entirely or partially visible, scrolling the list-view control if necessary.
This should work:
Code: |
LOADLIB user32.dll
%%listview = @winexists(~TABLE1)
REM %%item is the Index of the item to show
%%item = 60
REM Set %%partial to 1, if it's ok to only show part of the item.
REM Set it to 0 to make it show the whole item.
%%partial = 0
REM LVM_ENSUREVISIBLE = $01019
%P = @lib(user32,SendMessageA,INT:,%%listview,$01019,%%item,0)
FREELIB user32.dll
|
_________________ -Sheep
My pockets hurt... |
|
Back to top |
|
|
uvedese Contributor
Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Wed Apr 12, 2006 9:08 pm Post subject: |
|
|
Thank you very very much
Last edited by uvedese on Wed Apr 02, 2008 9:03 pm; edited 1 time in total |
|
Back to top |
|
|
uvedese Contributor
Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Thu Apr 13, 2006 8:32 am Post subject: |
|
|
Hola SnarlingSheep. Una pequeña ayuda.
He probado la función LVM_ENSUREVISIBLE pero no ha funcionado además no sé para qué sirve la variable "%%partial" ya que no forma parte de la llamada. Gracias
-----
Hi SnarlingSheep. A small aid:
I have try the function LVM_ENSUREVISIBLE but it has not worked, in addition I do not know why serves the variable "%%partial" since it does not comprise of the call. Thanks |
|
Back to top |
|
|
SnarlingSheep Professional Member
Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Thu Apr 13, 2006 2:56 pm Post subject: |
|
|
I forgot to use %%partial, it goes in place of the last 0:
Code: |
%P = @lib(user32,SendMessageA,INT:,%%listview,$01019,%%item,%%partial)
|
If you post the code you have tried, I can probably help you more. _________________ -Sheep
My pockets hurt... |
|
Back to top |
|
|
|