| View previous topic :: View next topic |
| Author |
Message |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Fri Jan 09, 2004 10:46 pm Post subject: Set ListView style to "Icon View" |
|
|
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 |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sat Jan 10, 2004 4:39 am Post subject: |
|
|
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
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Jan 10, 2004 1:15 pm Post subject: |
|
|
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!
Great job!
- FF
P.S. Can the icon mode display bitmaps?  _________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Jan 10, 2004 7:21 pm Post subject: |
|
|
Say, he did add a few things to this! Excellent work CodeScript!
Thanks
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 |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sun Jan 11, 2004 2:08 am Post subject: |
|
|
Hi everyone Nice to know that you liked the package
| 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.  _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Mon Jan 12, 2004 2:00 pm Post subject: |
|
|
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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Jan 12, 2004 6:44 pm Post subject: |
|
|
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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Jan 12, 2004 6:46 pm Post subject: |
|
|
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 |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Mon Jan 12, 2004 6:50 pm Post subject: |
|
|
| 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.  |
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 |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Mon Jan 12, 2004 7:12 pm Post subject: |
|
|
I'll check out gadget.dll and its examples. Thanks. _________________ Joe Floyd |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Jan 12, 2004 7:32 pm Post subject: |
|
|
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 |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Tue Jan 13, 2004 2:24 am Post subject: |
|
|
| 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
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Sat Jan 29, 2005 5:22 am Post subject: |
|
|
Codescript,
Is there an API to show a grid and check boxes in the table control at the same time? |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Mon May 23, 2005 4:46 am Post subject: |
|
|
Thought I would answer my own question
To show Grid and check boxes:
| Code: | | %X = @SENDMSG(@WINEXISTS(~TABLE1),@SUM($1000,54),0,13) |
|
|
| Back to top |
|
 |
|