Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8735911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:10:45+00:00 2026-06-13T10:10:45+00:00

Using Delphi XE3, Listview in vsIcon mode with an imagelist assigned. I add a

  • 0

Using Delphi XE3, Listview in vsIcon mode with an imagelist assigned.

I add a few items and assign them an ImageIndex, and there is a very large spacing/margin between each image/item, how can I change that? Is it possible at all without custom drawing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:10:47+00:00Added an answer on June 13, 2026 at 10:10 am

    You can use ListView_SetIconSpacing macro

    uses commctrl;
    ..
    ListView_SetIconSpacing(ListView1.Handle, 36, 36);
    ListView1.Arrange(arAlignTop);  // refresh view
    

    Refer to the documentation, the values must include icon sizes, otherwise the icons overlap each other.

    You can reset the view by sending ‘-1’ for cx and cy and the return value is the current spacing, so for instance, to decrease spacing with a certain amount, you can do:

    var
      Spacing: DWORD;
    begin
      Spacing := ListView_SetIconSpacing(ListView1.Handle, WORD(-1), WORD(-1));
      ListView_SetIconSpacing(ListView1.Handle,
                              LoWord(Spacing) - 10, HiWord(Spacing) - 6);
      ListView1.Arrange(arAlignTop);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Delphi to make an XLL add-in for Excel, which involves making a
Using Delphi 7, I wonder if there is a free component which will collect
Hi I'm using Delphi and I have a StringList with this items: 45 A15
I'm using Delphi 2010 and I'm wondering if there's a way to trace through
(Using Delphi 2010 + latest SQLite in WAL mode) I'm using DISQLite (Delphi port
Using Delphi 2009 on Windows XP to develop desktop application. Is there any way
Using delphi 2010, i am wondering if there someway to escape the following string
Using Delphi 7, is there anyway to force inputbox to allow only numbers entry
Using Delphi I would like to add another button to the border icon buttons;
Note: I am using Delphi XE2 I am trying to add a registry key.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.