Jump to content
Sign in to follow this  
MadBoy

GUICtrlCreateListView questions...

Recommended Posts

MadBoy

I was wondering. Is there an option to choose on GUICtrlCreateListView item with lets say right click then menu of that apears so you can select 'EDIT' or 'SHOW' or other info. Or maybe when you double click some entry it would open up some GUI with additional info about that? Or Maybe when you just select it info apears on top of the GUI list view somewhere else .. well just what you can actually do with that GUI ?:lmao:

#include <GuiListView.au3>
#include <GUIConstants.au3>


Opt("GUIOnEventMode", 1)
Dim $Gui_Main = GUICreate("MY GUI", 640, 480,-1,-1)
GUISetOnEvent($GUI_EVENT_CLOSE, "GuiCloseClick")


Dim $devicelist = GUICtrlCreateListView("Device Name|Device ID|Status", 5, 105, 630, 220, BitOR($LVS_NOSORTHEADER, $LVS_REPORT, $LVS_SHOWSELALWAYS), BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_GRIDLINES, $LVS_EX_SUBITEMIMAGES))
GUICtrlSetResizing($devicelist, $GUI_DOCKALL)
_GUICtrlListViewSetColumnWidth($devicelist, 0, 250)
_GUICtrlListViewSetColumnWidth($devicelist, 1, 200)
_GUICtrlListViewSetColumnWidth($devicelist, 2, 175)


GUISetState(@SW_SHOW, $gui_Main)

While 1
  Sleep(1000)  ; Idle around
WEnd

Func GuiCloseClick()
    If @GUI_WINHANDLE = $gui_Main Then 
        Exit
    EndIf
EndFunc

Tnx for info.


My little company: Evotec (PL version: Evotec)

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.