realkiller Posted May 7, 2008 Share Posted May 7, 2008 it is a little bit confusing how to use _GUICtrlListView_AddSubItem does anyone got a clear example? Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
realkiller Posted May 8, 2008 Author Share Posted May 8, 2008 anyone? Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted May 8, 2008 Share Posted May 8, 2008 There is an example in the helpfile that shows everything about the function, what more do you need?? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
smashly Posted May 8, 2008 Share Posted May 8, 2008 Hi, Surely the help file examples can't be that hard to comprehend ? Maybe explain where your having a problem trying to understand it.#include <GuiConstantsEx.au3> #include <GuiListView.au3> $hGUI = GUICreate("(Internal) ListView Add SubItem", 400, 300) $hListView = GUICtrlCreateListView("", 2, 2, 394, 268) ; Create Columns to hold Item and Sub Item ; 1st Column 1 is for Item(s) _GUICtrlListView_InsertColumn ($hListView, 0, "Column 1") ; 2nd Column 2 Is for Sub Item(s) _GUICtrlListView_InsertColumn ($hListView, 1, "Column 2") ; Create Item and Sub Item ; Add Item in Column 1 _GUICtrlListView_AddItem ($hListView, "Item 1 in Column 1", 0) ;Add a Sub Item in Column 2 _GUICtrlListView_AddSubItem ($hListView, 0, "Sub Item 1 in Col 2", 1) ; This was just to set the column width automatically to the width of the text in each column. _GUICtrlListView_SetColumnWidth($hListView, 0, $LVSCW_AUTOSIZE) _GUICtrlListView_SetColumnWidth($hListView, 1, $LVSCW_AUTOSIZE) GUISetState() While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case Else ;;; Do whatever EndSwitch WEnd Cheers Link to comment Share on other sites More sharing options...
realkiller Posted May 8, 2008 Author Share Posted May 8, 2008 (edited) thx for helping;) i understand it now;) Edited May 8, 2008 by realkiller Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2 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