Jump to content
Sign in to follow this  
demando

Icon move from Column1 to Column2 in ListView

Recommended Posts

demando

Hello
 
is there any way to move the Icons from Column1 to Column2 ?
 
 

#include <GUIConstantsEx.au3>
#include <GuiListView.au3>
#include <WindowsConstants.au3>

Dim $gui, $hListView, $listviewitem_1

$gui = GUICreate('', 600, 400)
$hListView = GUICtrlCreateListView('Column 1      |Column 2  ', 50, 100, 200, 250, $WS_BORDER, $LVS_EX_CHECKBOXES + $WS_EX_OVERLAPPEDWINDOW)

GUISetState(@SW_SHOW)

For $i = 1 To 10
    $listviewitem_1 = GUICtrlCreateListViewItem("Line " & $i, $hListView)
    GUICtrlSetImage($listviewitem_1, "shell32.dll", 22)
Next

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $Gui_Event_Close()
            Exit
    EndSelect
WEnd

Kind regards

demando

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  

×