Sign in to follow this  
Followers 0
alienkillaz

Read the .ini cant find what i needed so thought i wouldtry on the

10 posts in this topic

#1 ·  Posted (edited)

GUICtrlCreateListViewitem("item1|item2",$list)

is it possible to have a variable as one of the columns in a listview? something like this:

GUICtrlCreateListViewitem("item1|" & $Var & ",$list)

Edited by alienkillaz

Share this post


Link to post
Share on other sites



GUICtrlCreateListViewitem("item1|item2",$list)

is it possible to have a variable as one of the columns in a listview? something like this:

GUICtrlCreateListViewitem("item1|" & $Var & ",$list)

Blah... your last question showed you have a problem reading the help file because the answer was right there.... so is this one.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Blah... your last question showed you have a problem reading the help file because the answer was right there.... so is this one.

there is nothing usefull about your comment. i looked in the help file and did a forum search but it hard to search for specific questions like this.

Share this post


Link to post
Share on other sites

in fact here is what the help file has on my question

#include <GUIConstants.au3>

GUICreate("listview items",220,250, 100,200,-1,$WS_EX_ACCEPTFILES)
GUISetBkColor (0x00E0FFFF) ; will change background color

$listview = GuiCtrlCreateListView ("col1  |col2|col3  ",10,10,200,150);,$LVS_SORTDESCENDING)
$button = GuiCtrlCreateButton ("Value?",75,170,70,20)
$item1=GuiCtrlCreateListViewItem("item2|col22|col23",$listview)
$item2=GuiCtrlCreateListViewItem("............item1|col12|col13",$listview)
$item3=GuiCtrlCreateListViewItem("item3|col32|col33",$listview)
$input1=GuiCtrlCreateInput("",20,200, 150)
GuiCtrlSetState(-1,$GUI_DROPACCEPTED)  ; to allow drag and dropping
GuiSetState()
GUICtrlSetData($item2,"|ITEM1")
GUICtrlSetData($item3,"||COL33")
GUICtrlDelete($item1)

Do
  $msg = GuiGetMsg ()
     
   Select
      Case $msg = $button
         MsgBox(0,"listview item",GUICtrlRead(GUICtrlRead($listview)),2)
      Case $msg = $listview
         MsgBox(0,"listview", "clicked="& GuiCtrlGetState($listview),2)
   EndSelect
Until $msg = $GUI_EVENT_CLOSE

Share this post


Link to post
Share on other sites

Useful? Why because you don't know how to interpret?


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Useful? Why because you don't know how to interpret?

are you 12? im shocked you have a moderator tag

Share this post


Link to post
Share on other sites

are you 12? im shocked you have a moderator tag

Not so much... I'm shocked you've been around for 3 years and can't answer a simple question as you've posed.

Don't be stupid, just RTFM


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Not so much... I'm shocked you've been around for 3 years and can't answer a simple question as you've posed.

Don't be stupid, just RTFM

this is direct quote from the forum rules

#1 Exercise common sense and be considerate toward your fellow members. Diversity of opinion and intelligent civil discourse is encouraged; by the same token, insults and flaming are not tolerated. Disagreeing with an idea of another community member is different from attacking that individual.

obviously im gonna have to repost my question tommorow when i hope some of the more mature mod's are on.

Share this post


Link to post
Share on other sites

obviously im gonna have to repost my question tommorow when i hope some of the more mature mod's are on.

Either that... or RTFM

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Here's a hint.

Each section is an array... so $aArray[0] = "1st Section" $aArray[1] = "2nd Section"


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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  
Followers 0