Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Autosizing a listview after it has been edited?

$
0
0

Hello all I have been using the following function to resize my listview to show all text.

func _sizeconvolist()    GUICtrlSendMsg($convolist, $LVM_SETCOLUMNWIDTH, 0, -1) ; $LVSCW_AUTOSIZE     GUICtrlSendMsg($convolist, $LVM_SETCOLUMNWIDTH, 0, -2) ; $LVSCW_AUTOSIZE_USEHEADER EndFunc

It works great until I do 

_GUICtrlListView_BeginUpdate($convolist) _GUICtrlListView_DeleteAllItems($convolist) _GUICtrlListView_InsertItem($convolist, "Some Text") _sizeconvolist() _GUICtrlListView_EndUpdate($convolist) _sizeconvolist()

After this point, the listview no longer auto resizes, anyone have any idea why?


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>