Jump to content

Making a control invisible?


nyke0
 Share

Recommended Posts

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
Link to comment
Share on other sites

  • Developers

Replace @SW_Hide by $GUI_HIDE?

Same counts for the SHOW variables.

Jos

Edited 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

  • Developers

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

Jos

Edited 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

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)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...