Jump to content
Sign in to follow this  

Extra pipe at end of GUICtrlCreateListViewItem

Recommended Posts

I just upgraded from an old version of AutoIt from mid-2006 to the latest version 1.71 Nov 25 2007 and my script with GUICtrlCreateListViewItem is behaving differently now.

I already modified the code to work around the change in behavior, but was wondering if this is expected behavior or if it is a bug.

The problem can be reproduced by running the sample code from the help file for GUICtrlCreateListViewItem.

#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)




$input1=GuiCtrlCreateInput("",20,200, 150)

GuiCtrlSetState(-1,$GUI_DROPACCEPTED) ; to allow drag and dropping






$msg = GuiGetMsg ()


Case $msg = $button

MsgBox(0,"listview item",GUICtrlRead(GUICtrlRead($listview)),2)

Case $msg = $listview

MsgBox(0,"listview", "clicked="& GuiCtrlGetState($listview),2)


Until $msg = $GUI_EVENT_CLOSE

If you run that code and either drag & drop a list item to the textbox, or select a list item then click the button, you'll see a pipe | be appended to the end. The old version of autoit that I was running did not behave like this.

This is my first post to this forum so I hope I provided enough detail and posted in the right place. Thanks for the great free software.

Share this post

Link to post
Share on other sites

Thanks for the tip. That has the behavior I'm used to.

I have the latest version and the gettextstring doesn't show the extra pipe on the end :-/. But post in bug reports with a detailed explanation and example script and so on

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...