nyke0 Posted August 30, 2014 Share Posted August 30, 2014 (edited) GUICtrlSetState($ListView, @SW_HIDE) _GUICtrlListView_BeginUpdate($ListView) For $i = 0 To UBound($Get_Subs_0) - 1 GUICtrlCreateListViewItem($Get_Subs_0[$i]) GUICtrlSetBkColor(-1, 0x1e1e1e) _GUICtrlListView_AddSubItem($ListView, $i, $Get_Subs_1[$i], 1 _GUICtrlListView_AddSubItem($ListView, $i, $Get_Subs_2[$i], 2) _GUICtrlListView_AddSubItem($ListView, $i, $Get_Subs_3[$i], 3) _GUICtrlListView_AddSubItem($ListView, $i, $Get_Subs_4[$i], 4) _GUICtrlListView_AddSubItem($ListView, $i, $Get_Subs_5[$i], 5) Next MsgBox(0,"", "after") ; Her I can already see the Listview in my GUI, before I click "ok" _GUICtrlListView_EndUpdate($ListView) GUICtrlSetState($ListView, @SW_SHOW) Look to the MsgBox Comment. _GuiCtrlListVIew_BeginUpdate and GUICtrlSetState($ListView, @SW_SHOW) do not really work, because I can see the List before I end both. The problem is, the listview ist almost black, so its blending in a white background while its loading the list, that looks very bad Edited August 30, 2014 by nyke0 Link to comment Share on other sites More sharing options...
Developers Jos Posted August 30, 2014 Developers Share Posted August 30, 2014 (edited) Replace @SW_Hide by $GUI_HIDE? Same counts for the SHOW variables. Jos Edited August 30, 2014 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
nyke0 Posted August 30, 2014 Author Share Posted August 30, 2014 Did, it's still the same. :/ Link to comment Share on other sites More sharing options...
Developers Jos Posted August 30, 2014 Developers Share Posted August 30, 2014 (edited) Post a script that we can run and shows your issue so we can test it. Jos Edited August 30, 2014 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
mikell Posted August 30, 2014 Share Posted August 30, 2014 Brute trick : create a black popup gui to cover the listview, then delete it after update Link to comment Share on other sites More sharing options...
jvds Posted August 30, 2014 Share Posted August 30, 2014 I wanted to hide my listvew temporarily, but i was using '_GUICtrlListView_Create' function, so I don't know how it will behave with 'GUICtrlCreateListView' im sure there must be a way to hide the list view another way but i ended up doing the below code xD $tradelist = _GUICtrlListView_Create($mGui, "",4, 20, 300, 300, -1, -1, False) ;hide litview by making in thin _WinAPI_MoveWindow($tradelist, 4, 20, 1, 1) ;add items or etc ;restore the original position _WinAPI_MoveWindow($tradelist, 4, 20, 300, 300) Rurorita 1 Link to comment Share on other sites More sharing options...
mikell Posted August 30, 2014 Share Posted August 30, 2014 Clever 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