MadBoy Posted October 5, 2006 Share Posted October 5, 2006 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 ? #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) Link to comment Share on other sites More sharing options...
xcal Posted October 5, 2006 Share Posted October 5, 2006 Have a look at this:http://www.autoitscript.com/forum/index.php?showtopic=33983And for the right click context, you can just do:GUICtrlCreateContextMenu($list)$list being your listview, and just add stuff to the menu like normal. How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
MadBoy Posted October 5, 2006 Author Share Posted October 5, 2006 Have a look at this:http://www.autoitscript.com/forum/index.php?showtopic=33983And for the right click context, you can just do:GUICtrlCreateContextMenu($list)$list being your listview, and just add stuff to the menu like normal.Tmx that's basically what i wanted My little company: Evotec (PL version: Evotec) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now