Jump to content

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


Recommended Posts

  • Moderators

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.

Link to comment
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.

Link to comment
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
Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
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.

Link to comment
Share on other sites

  • Moderators

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.

Link to comment
Share on other sites

  • Moderators

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.

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...