forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


I need LVM_SETTOPINDEX Windows API function in TABLE element

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced Help for VDS 5 & Up
View previous topic :: View next topic  
Author Message
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 169
Location: Spain

PostPosted: Wed Apr 12, 2006 7:42 pm    Post subject: I need LVM_SETTOPINDEX Windows API function in TABLE element Reply with quote

Hola a todos. Hi

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 Very Happy

----

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 Very Happy
Back to top
View user's profile Send private message Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Wed Apr 12, 2006 8:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 169
Location: Spain

PostPosted: Wed Apr 12, 2006 9:08 pm    Post subject: Reply with quote

Thank you very very much Worship

Last edited by uvedese on Wed Apr 02, 2008 9:03 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 169
Location: Spain

PostPosted: Thu Apr 13, 2006 8:32 am    Post subject: Reply with quote

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 Thumbs Up

-----


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 Thumbs Up
Back to top
View user's profile Send private message Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Thu Apr 13, 2006 2:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced Help for VDS 5 & Up All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group