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 


[resolved] Table list : Autoscroll and Headers

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Wed May 19, 2004 11:59 am    Post subject: [resolved] Table list : Autoscroll and Headers Reply with quote

Hi,

I would like to know how to autoscroll a table list in VDS 5, and also is it possible to hide or remove the headers?

In the code example below I want it to autoscroll to index 500 by pressing on the seek button:

Code:
  title Table Test
  DIALOG CREATE,Test TABLE ,-1,0,424,360
  DIALOG ADD,TABLE,TABLE1,16,16,390,240,Column 1[144]|Column 2[80]|Column 3,,CLICK,DBLCLICK,COLUMNSORT,MULTI
  DIALOG ADD,STATUS,SB
  DIALOG ADD,BUTTON,Seek0,264,16,64,24,Seek 0
 
  DIALOG SHOW
 wait 1
  dialog set,table1,This is a TABLE@tab()dialog@tab()element
  list add,table1,A table item@tab()and a subitem
  list add,table1,Another table item@tab()SubItem 1@tab()SubItem 2@tab()SubItem 3
  list add,table1,Yet another table item@tab()@tab()SubItem 2
  list add,table1,And another table item
  repeat
     list add,table1,And another table item
  until @equal(@count(table1),1000)
  dialog set,sb,@count(table1)
:table1click
:loop
  dialog set,sb,Selected item @index(table1): @item(table1)

  wait event
  %E = @event()
  goto %E
:table1dblclick
  info Doubleclick!
  goto loop
:seek0button
  list seek,table1,500
  dialog focus,table1
  #Not sure how to make the following work
  %A = @SENDMSG(@WINEXISTS(~table1),$197,@PRED(@COUNT(table1)),5)
  goto loop



:close
  stop



Thanks in advance Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri May 21, 2004 12:23 am    Post subject: Reply with quote

hi marty,

not sure about autoscroll but to hide the headers, i remember that codescript made that feature possible with api calls... have a look at http://www.vdsworld.com/search.php?keywords=table&match_type=0&sid=d36d0e8567294bf8e4d3de2fbcaa5c0f ...the file contains info on api calls for hiding headers

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Fri May 21, 2004 11:27 am    Post subject: Reply with quote

Thanks a lot Serge Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    forum.vdsworld.com Forum Index -> General Help 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