Jump to content

List View - Auto Resize Columns


Bi0haZarD
 Share

Recommended Posts

I have a list view in my GUI and theres a column for "Comments" now.. if the Column gets to wide it doesn't display the rest of the text.. but changes to elipses (...).

heres a screenshot of what i'm talking about.

Posted Image

see the part in red. it only shows the comment as being "123456789012345678901..." if i want to see the rest i have to manually make the column size bigger.

the actual comment is "123456789012345678901234567890123456789012345678901234567890123"

I've tried changing the text for "Comment" to "Comment (bunch of spaces) " and have had no luck.

I tried searching for this but haven't found anything as of yet.

Link to comment
Share on other sites

I have a list view in my GUI and theres a column for "Comments" now.. if the Column gets to wide it doesn't display the rest of the text.. but changes to elipses (...).

heres a screenshot of what i'm talking about.

Posted Image

see the part in red. it only shows the comment as being "123456789012345678901..." if i want to see the rest i have to manually make the column size bigger.

the actual comment is "123456789012345678901234567890123456789012345678901234567890123"

I've tried changing the text for "Comment" to "Comment        (bunch of spaces)        " and have had no luck.

I tried searching for this but haven't found anything as of yet.

<{POST_SNAPBACK}>

Try:

_GUICtrlListViewSetColumnWidth($h_listview, $i_col, $i_width)

in the GuiListView.au3 UDF. (See help file for syntax and example)

Works for me.

Link to comment
Share on other sites

Try:

_GUICtrlListViewSetColumnWidth($h_listview, $i_col, $i_width)

in the GuiListView.au3 UDF. (See help file for syntax and example)

Works for me.

<{POST_SNAPBACK}>

That's in the beta version.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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...