Recent

Author Topic: [Solved] Icon distance in ListView  (Read 3512 times)

Danccce

  • New member
  • *
  • Posts: 7
[Solved] Icon distance in ListView
« on: June 21, 2011, 12:47:42 pm »
HI,

I have a Question concerning ListView:

I've used a ListView in the ViewStyle vsIcon and have a ImageList with icons (40 x 40 Pixel).
When I add an item the distance between them is to big for my application. Is there a posibility to decrese this distance?

Best regards
Marc
« Last Edit: June 21, 2011, 01:14:05 pm by Danccce »

Danccce

  • New member
  • *
  • Posts: 7
Re: [Solved] Icon distance in ListView
« Reply #1 on: June 21, 2011, 01:14:59 pm »
I found

CommCtrl.ListView_SetIconSpacing(listview1.Handle, 30, 30);

which helps.

Best Regards
Marc

 

TinyPortal © 2005-2018