Jump to content
Sign in to follow this  
Gee

Help Array Insert in to ListView

Recommended Posts

Gee

hi, all

My Question :

WinList() ==> Array[][]

How do insert it into GuictrlcreateListView ?

Share this post


Link to post
Share on other sites
Minikori

hi, all

My Question :

WinList() ==> Array[][]

How do insert it into GuictrlcreateListView ?

Use a For...Next.

Example:

#include <GUIConstantsEx.au3>

$Windows = WinList()

GUICreate("WinList")

$List = GUICtrlCreateListView("Window|Handle", 50, 50, 300, 300)
For $x = 1 To $Windows[0][0]
    GUICtrlCreateListViewItem($Windows[$x][0] & "|" & $Windows[$x][1], $List)
Next

GUISetState()
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
WEnd

For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.