Sign in to follow this  
Followers 0
Bi0haZarD

List View - Auto Resize Columns

5 posts in this topic

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.

Share this post


Link to post
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.

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

That's in the beta version.

<{POST_SNAPBACK}>

You are right.

Sorry, forgot to mention that.

Share this post


Link to post
Share on other sites

ahh thx for the response, i'll just manually resize if need be for the time being until beta becomes the "latest version"

thx

Share this post


Link to post
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
Sign in to follow this  
Followers 0