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 


Select all rows in a 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: 159
Location: Spain

PostPosted: Sat Jul 29, 2006 3:33 pm    Post subject: Select all rows in a TABLE element Reply with quote

Hello VDSWorld. Hi

Only one asks: How can be selected to all the rows of an TABLE element? Stupid


Thanks in advance
________________

uVeDeSe
Visit: http://www.uvedese.es


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


Joined: 15 Jun 2004
Posts: 180
Location: FRANCE

PostPosted: Sat Jul 29, 2006 5:00 pm    Post subject: Reply with quote

You can use this function :

%x = @sendmsg(@winexists(~table1),@sum($1000,54),0,$0020)

with table1 the name of your table
Back to top
View user's profile Send private message Visit poster's website
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 159
Location: Spain

PostPosted: Sat Jul 29, 2006 6:38 pm    Post subject: Reply with quote

Thanks, but, I have not explained myself well.

In a TABLE element with style "MULTI" it wanted to select the whole table, with all items: columns and rows.

Thaks
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Tue Aug 01, 2006 10:30 pm    Post subject: Reply with quote

I may be wrong, but I don't think this is possible. Sad
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Aug 01, 2006 11:23 pm    Post subject: Reply with quote

Hola uvedese,

The code below will allow you to select all rows in a ListView control, or
Vds Table element. In order for it to appear to select all rows, you must
enable the table control for selecting full rows.

All of the following code assumes that your table is named "ListView".

To enable LVS_EX_FULLROWSELECT::
Code:

  REM Style = LVS_EX_FULLROWSELECT ( $00000020 )
  REM Message = LVM_SETEXTENDEDLISTVIEWSTYLE ( @sum($1000,54))
  %z = @sendmsg(@winexists(~ListView),@sum($1000,54), 0, $20)


To select all data, including columns in a listview or Vds Table::
Code:

  REM We have to pass a structure as an argument to the SendMessage
  REM API. Here, we define the LV_ITEM structure
  %%LVITEM =
  %%LVITEM = %%LVITEM@binary(DWORD,$0008)
  %%LVITEM = %%LVITEM@binary(DWORD,0)
  %%LVITEM = %%LVITEM@binary(DWORD,0)
  %%LVITEM = %%LVITEM@binary(DWORD,$0002)
  %%LVITEM = %%LVITEM@binary(DWORD,$0002)
  %%LVITEM = %%LVITEM@binary(DWORD,0)
  %%LVITEM = %%LVITEM@binary(DWORD,0)
  %%LVITEM = %%LVITEM@binary(DWORD,0)
  %%LVITEM = %%LVITEM@binary(DWORD,0)

  REM Important, the control must have the focus for this to work
  dialog focus,ListView
  %r = @sendmsg(@winexists(~ListView), @sum($1000,43), -1, %%LVITEM)


Is this what you were looking for? Hope it helps.

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 159
Location: Spain

PostPosted: Wed Aug 02, 2006 12:17 pm    Post subject: Reply with quote

Thank you very much, ShinobiSoft. Worship

It works perfectly. Thumbs Up

______________
uVeDeSe
Back to top
View user's profile Send private message Visit poster's website
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Wed Aug 02, 2006 12:29 pm    Post subject: Reply with quote

De nada!

Was glad to help. Mr. Green

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 159
Location: Spain

PostPosted: Wed Aug 02, 2006 1:51 pm    Post subject: Reply with quote

It was what needed: recently I finished a small utility to compress and decompress in ZIP:


The whole table selection was implemented of an unsuitable form. With your solution the option "to select all the elements" is perfectly operative.

PequeZip can be downloaded from:
http://vds.uvedese.es/index.php?option=com_content&task=view&id=113&Itemid=5

thanks again
______________

uVeDeSe


Last edited by uvedese on Wed Apr 02, 2008 8:47 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: 159
Location: Spain

PostPosted: Wed Aug 02, 2006 4:00 pm    Post subject: Reply with quote

The reviewed Beta version 1.0.20 of PequeZip is available from:

http://vds.uvedese.es/index.php?option=com_content&task=view&id=113&Itemid=5

______________
uVeDeSe
Back to top
View user's profile Send private message Visit poster's website
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