Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Icon size in Tlistview??

Posted on 2003-11-19
2
Medium Priority
?
1,436 Views
Last Modified: 2008-03-10
how can I controll icon size in listview (vsicon viewstyle) ?? I tryed width and hieght in large image properties but my icons disappeared.(I want size near to windows desktop icons)
0
Comment
Question by:sraab2004
2 Comments
 
LVL 3

Accepted Solution

by:
Mamouri earned 150 total points
ID: 9777368
Hi!
Put a TImageList and TListView in your form.

Change Width and Height propery of TImageList to 100 and 100. Add some images to it.

Now Use a code like this for adding Images:
var
  i: integer;
begin
  for i := 0 to ImageList1.Count - 1 do
  begin
    ListView1.Items.Add;
    ListView1.Items[ListView1.Items.Count - 1].ImageIndex := i;
  end;

Let me know does it work and do you need that?

Regards
0
 

Author Comment

by:sraab2004
ID: 9777712
thanks  Mamouri that exactely what I want
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Loops Section Overview

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question