Jump to content

Listview Column sizing


ChrisL
 Share

Recommended Posts

I have seen a listview which auto sizes the columns based on the data in the column and not the header, but it has limits, so it resizes to the longest line of text in the column provided its not longer then X characters, if it is longer then X characters it only resizes to the value X. The same with a minimum width too.

The Example_Browser.au3 in the Sqlite topic in the Examples Forum seems to do it but I can't figure out what it is there doing.

Thanks in advance...

Link to comment
Share on other sites

try _GUICtrlListViewSetColumnWidth

Thanks but I've just figured it out.

The GUiCtrlCreateListViewItem() does the automatic sizing of the columns

The _GUICtrlListViewInsertItem() udf function does not do the auto column sizing.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...