Solved

Icon size in Tlistview??

Posted on 2003-11-19
2
1,346 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 50 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
A short film showing how OnPage and Connectwise integration works.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now