GordonFreeman Posted November 18, 2013 Share Posted November 18, 2013 (edited) I guys! I Want a simple listview show all data in all itens. Ex.: Name | GordonFreeman | Instead of: Name | GordonFr...| Like when double click on diagonal line Edited November 18, 2013 by GordonFreeman Frabjous Installation Link to comment Share on other sites More sharing options...
Solution Danyfirex Posted November 18, 2013 Solution Share Posted November 18, 2013 Look this example by M23 #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <ListViewConstants.au3> Global $aData[5] = ["1|1|1", "2|2222222222222|2", "33333333|3333|33333333333333", "4|444444444444444444444444444|4", "5|5|5"] Global $aRet, $iMaxElement = 0, $iGUI_Width = 500 ; Create GUI Global $hGUI = GUICreate("Test", $iGUI_Width, 500) ; Create List View Global $hListView = GUICtrlCreateListView(" | | ", 10, 10, 480, 480, $LVS_SHOWSELALWAYS, BitOR($LVS_EX_FULLROWSELECT, $WS_EX_CLIENTEDGE)) ; Add data For $i = 0 To 4 GUICtrlCreateListViewItem($aData[$i], $hListView) Next ; Determine ListView width $iLV_Width = 0 For $i = 0 To 2 GUICtrlSendMsg($hListView, $LVM_SETCOLUMNWIDTH, $i, $LVSCW_AUTOSIZE) $iLV_Width += GUICtrlSendMsg($hListView, $LVM_GETCOLUMNWIDTH, $i, 0) Next ; resize ListView and GUI ControlMove($hGUI, "", $hListView, 10, 10, $iLV_Width + 10, 480) ; Add 10 becasue of internal borders WinMove($hGUI, "", Default, Default, $iLV_Width + 30) ; Add 30 for internal and external borders GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
GordonFreeman Posted November 18, 2013 Author Share Posted November 18, 2013 Niceeeee! And listview create horizontal scrollbars automatically. Exact i want. Thanks saludos Frabjous Installation 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