Jump to content

How to type the text under the Column


Recommended Posts

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 this

Item Name Slot Price NPC Name

Sword 2 200 Swordsmith

the 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 by kennycc
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...