Opened 13 years ago

Closed 11 years ago

#1759 closed Bug (Fixed)

Strange listview sort

Reported by: Eric Owned by: trancexx
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: Cc:



I have a strange result with listview sort.

When i sort à listview on Windows 7 the sort seems to be good.

C:\Documents and Settings\XPMUser\Bureau\044-0610.txt
C:\Documents and Settings\XPMUser\Bureau\annotatif.txt
C:\Documents and Settings\XPMUser\Bureau\UTB.txt
C:\UTB rue de rivoli-indice-C.txt

But on Windows XP the sort is not the same

C:\Documents and Settings\XPMUser\Bureau\044-0610.txt
C:\Documents and Settings\XPMUser\Bureau\annotatif.txt
C:\UTB rue de rivoli-indice-C.txt
C:\Documents and Settings\XPMUser\Bureau\UTB.txt

Is it a Windows XP or Autoit Problem ?

(If you have 2 column on the listview the sort is good on windows XP too, but not with 1 column)

Here the code for try


#include <GUIConstantsEx.au3>

#include <GuiListView.au3>

$gui = GUICreate("titre", 730, 490, -1, -1, -1)
$listefichier = GUICtrlCreateListView("Fichiers", 20, 60, 430, 340) 

GUICtrlCreateListViewItem("C:\UTB rue de rivoli-indice-C.txt", $listefichier) 
GUICtrlCreateListViewItem("C:\Documents and Settings\XPMUser\Bureau\UTB.txt", $listefichier)
GUICtrlCreateListViewItem("C:\Documents and Settings\XPMUser\Bureau\annotatif.txt", $listefichier)
GUICtrlCreateListViewItem("C:\Documents and Settings\XPMUser\Bureau\044-0610.txt", $listefichier)

_GUICtrlListView_SetColumnWidth($listefichier, 0, $LVSCW_AUTOSIZE)

while 1
$msg = GUIGetMsg()

        Case $msg = $GUI_EVENT_CLOSE


        Case $msg = $listefichier
            _GUICtrlListView_SortItems($listefichier, GUICtrlGetState($listefichier))
        case Else




Attachments (0)

Change History (3)

comment:1 Changed 13 years ago by MrCreatoR <mscreator@…>


AutoIt:   (Os:WIN_XP/X86/Service Pack 3   Language:0419 Keyboard:00000409 Cpu:X64)

Strange indeed. It seems that _GUICtrlListView_FindItem can not find the item, it returns -1 on the last two. Perhaps the problem is in the structure and the params that is set for it.

comment:2 Changed 13 years ago by Jon

  • Component changed from AutoIt to Standard UDFs
  • Owner set to Gary

comment:3 Changed 11 years ago by trancexx

  • Milestone set to
  • Owner changed from Gary to trancexx
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [7300] in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain trancexx.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.