Jump to content
Sign in to follow this  
nyke0

Making a control invisible?

Recommended Posts

nyke0

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 by nyke0

Share this post


Link to post
Share on other sites
Jos

Replace @SW_Hide by $GUI_HIDE?

Same counts for the SHOW variables.

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Jos

Post a script that we can run and shows your issue so we can test it. :)

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
mikell

Brute trick : create a black popup gui to cover the listview, then delete it after update  :)

Share this post


Link to post
Share on other sites
jvds

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)

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  

×