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 


Set ListView style to "Icon View"

 
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
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Jan 09, 2004 10:46 pm    Post subject: Set ListView style to "Icon View" Reply with quote

Hi,

I'm not sure how to go about doing this, however I think it would be
really useful to be able to use this style.

I've looked at the WIN32 Programmer's Reference and here's where it
talks about using the different list views...

List view controls can display their contents in four different views. The current view is specified by the control's window style. Additional window styles specify the alignment of items and control-specific functionality of the list view control. Information about the four views follows.

Code:
View   Description
Icon view   Specified by the LVS_ICON window style.Each item appears as a full-sized icon with a label below it. The user can drag the items to any location in the list view window.
Small icon view   Specified by the LVS_SMALLICON window style.Each item appears as a small icon with the label to the right of it. The user can drag the items to any location.
List view   Specified by the LVS_LIST window style.Each item appears as a small icon with a label to the right of it. Items are arranged in columns and cannot be dragged to any arbitrary location by the user.
Report view   Specified by the LVS_REPORT window style.Each item appears on its own line with information arranged in columns. The leftmost column contains the small icon and label, and subsequent columns contain subitems as specified by the application. Unless the LVS_NOCOLUMNHEADER window style is also specified, each column has a header.
You can change the view type after a list view control is created. To retrieve and change the window style, use the GetWindowLong and SetWindowLong functions. To determine the window styles that correspond to the current view, use the LVS_TYPEMASK value.
You can control the way items are arranged in icon or small icon view by specifying either the LVS_ALIGNTOP (default) or LVS_ALIGNLEFT window style. You can change the alignment after a list view control is created. To isolate the window styles that specify the alignment of items, use the LVS_ALIGNMASK value.

Additional window styles control other options ¾ for example, whether a user can edit labels in place, whether more than one item can be selected at a time, and so on.

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Sat Jan 10, 2004 4:39 am    Post subject: Reply with quote

Hi FF
I think I had implemented all styles that were possible in VDS table element (a List view control wrapped partially by VDS ) including icon style quite sometime back. Only thing to be added to the DSU is image list for setting icons in Large icon style

This consists of a help file, souce codes and a DSU to wrap functions which I felt are a little difficult
http://www.vdsworld.com/index.php?page=download&fileid=341


Enjoy

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Sat Jan 10, 2004 1:15 pm    Post subject: Reply with quote

Shocked

This is so cool! The last time I saw this I only seemed to have example
one, but all of those examples are magnificent beyond explanation! Wink

Great job! Very Happy

- FF

P.S. Can the icon mode display bitmaps? Smile

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Jan 10, 2004 7:21 pm    Post subject: Reply with quote

Say, he did add a few things to this! Excellent work CodeScript!

Thanks Smile

One note though... Could you please go through your site and mark
which scripts are for Win2k only or XP only? I think all of them say
they are for all platforms, then I download one or two and they say
they are only for Win2k or XP only.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Sun Jan 11, 2004 2:08 am    Post subject: Reply with quote

Hi everyone Nice to know that you liked the package Smile

Garrett wrote:
One note though... Could you please go through your site and mark
which scripts are for Win2k only or XP only? I think all of them say
they are for all platforms, then I download one or two and they say
they are only for Win2k or XP only.

I have tried marking each of them for particular OS. May be there is an oversight. Could you plaese tell me the particular file if you can rememeber. Smile

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Mon Jan 12, 2004 2:00 pm    Post subject: Reply with quote

Is there a way to make the icons in the table appear as images, rather than text? And is there a way to drag them around the window?
_________________
Joe Floyd
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Jan 12, 2004 6:44 pm    Post subject: Reply with quote

If you need a image list instead of the table, then check out the gadget
dll from DragonSphere. There's an example with that showing how to
setup and use images in a list, and how to change the views of it.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Jan 12, 2004 6:46 pm    Post subject: Reply with quote

Sorry, meant to reply to another part of your question also. The dragging
and dropping is going to be a bit hard. There's nothing native to VDS for
doing this. Though I did make a couple of examples on dragging and
dropping within list elements and from one list element to another. You
might try to adapt the code from those to what you are trying to do.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Jan 12, 2004 6:50 pm    Post subject: Reply with quote

CodeScript wrote:
I have tried marking each of them for particular OS. May be there is an oversight. Could you plaese tell me the particular file if you can rememeber. Smile



The "Just Great Window" is one that I just ran into a few days ago. If run
into any others, I'll let you know which ones.

-Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
jwfv
Valued Contributor
Valued Contributor


Joined: 19 Mar 2002
Posts: 422
Location: Beaufort, SC

PostPosted: Mon Jan 12, 2004 7:12 pm    Post subject: Reply with quote

I'll check out gadget.dll and its examples. Thanks.
_________________
Joe Floyd
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Mon Jan 12, 2004 7:32 pm    Post subject: Reply with quote

Joe,
I am almost done with the new version of Gadget.dll... Also note that the Listview control that the example uses is the Listview that comes with Windows and the example is not a full implementation. I built this example before VDS 5 was released. I plan to update it and use the VDS 5 table element instead of the raw control.

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Tue Jan 13, 2004 2:24 am    Post subject: Reply with quote

Garrett wrote:
The "Just Great Window" is one that I just ran into a few days ago. -Garrett

Thanks Garett I will correct that

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Sat Jan 29, 2005 5:22 am    Post subject: Reply with quote

Codescript,

Is there an API to show a grid and check boxes in the table control at the same time?
Back to top
View user's profile Send private message Send e-mail
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Mon May 23, 2005 4:46 am    Post subject: Reply with quote

Thought I would answer my own question Laughing

To show Grid and check boxes:

Code:
%X = @SENDMSG(@WINEXISTS(~TABLE1),@SUM($1000,54),0,13)
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