ChrisL Posted November 29, 2006 Share Posted November 29, 2006 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... [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
GaryFrost Posted November 29, 2006 Share Posted November 29, 2006 try _GUICtrlListViewSetColumnWidth 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 More sharing options...
ChrisL Posted November 30, 2006 Author Share Posted November 30, 2006 try _GUICtrlListViewSetColumnWidthThanks but I've just figured it out.The GUiCtrlCreateListViewItem() does the automatic sizing of the columnsThe _GUICtrlListViewInsertItem() udf function does not do the auto column sizing. [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now