View previous topic :: View next topic |
Author |
Message |
uvedese Contributor
Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Sat Jul 29, 2006 3:33 pm Post subject: Select all rows in a TABLE element |
|
|
Hello VDSWorld.
Only one asks: How can be selected to all the rows of an TABLE element?
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 |
|
|
GregLand Valued Contributor
Joined: 15 Jun 2004 Posts: 212 Location: FRANCE
|
Posted: Sat Jul 29, 2006 5:00 pm Post subject: |
|
|
You can use this function :
%x = @sendmsg(@winexists(~table1),@sum($1000,54),0,$0020)
with table1 the name of your table |
|
Back to top |
|
|
uvedese Contributor
Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Sat Jul 29, 2006 6:38 pm Post subject: |
|
|
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 |
|
|
FreezingFire Admin Team
Joined: 23 Jun 2002 Posts: 3508
|
Posted: Tue Aug 01, 2006 10:30 pm Post subject: |
|
|
I may be wrong, but I don't think this is possible. _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
Back to top |
|
|
ShinobiSoft Professional Member
Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Tue Aug 01, 2006 11:23 pm Post subject: |
|
|
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 |
|
|
uvedese Contributor
Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Wed Aug 02, 2006 12:17 pm Post subject: |
|
|
Thank you very much, ShinobiSoft.
It works perfectly.
______________
uVeDeSe |
|
Back to top |
|
|
ShinobiSoft Professional Member
Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Wed Aug 02, 2006 12:29 pm Post subject: |
|
|
De nada!
Was glad to help. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
Back to top |
|
|
uvedese Contributor
Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
Posted: Wed Aug 02, 2006 1:51 pm Post subject: |
|
|
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 |
|
|
uvedese Contributor
Joined: 21 Jan 2006 Posts: 169 Location: Spain
|
|
Back to top |
|
|
|