kennycc Posted April 4, 2011 Share Posted April 4, 2011 (edited) I'm try to list the Item, cost and NPC name on this little script which so far it came to making a window the way i wanted.but I don't know how to type the list of thing i want it to show under the column. Which code do i have to use to show text under the Column in the white box?For Example i want to show it like thisItem Name Slot Price NPC NameSword 2 200 Swordsmiththe bold one are column and not bold one are the one i want to show under the each column #AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 #include <GuiConstantsEx.au3> #include <GuiListView.au3> Opt('MustDeclareVars', 1) $Debug_LV = False ; Check ClassName being passed to ListView functions, set to True and use a handle to another control to see it work _Main() Func _Main() Local $aInfo, $hListView GUICreate("ListView Justify Column", 400, 300) $hListView = GUICtrlCreateListView("", 2, 2, 394, 268) GUISetState() ; Add columns _GUICtrlListView_AddColumn($hListView, "Item Name", 100) _GUICtrlListView_AddColumn($hListView, "Slot", 50) _GUICtrlListView_AddColumn($hListView, "Price", 50) _GUICtrlListView_AddColumn($hListView, "NPC Name", 100) ; Loop until user exits Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>_Main Edited April 4, 2011 by kennycc Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 4, 2011 Share Posted April 4, 2011 Even the example for _GUICtrlListView_AddColumn() tells you how to do that .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...
kennycc Posted April 4, 2011 Author Share Posted April 4, 2011 stupid me I couldn't find add item one :S most likely search for the wrong code thanks for the help 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