Opened 2 years ago

Closed 2 years ago

#3791 closed Bug (Fixed)

Sort arrow not showing in _ArrayDisplay()

Reported by: pixelsearch Owned by: Jpm
Milestone: Component: Standard UDFs
Version: Severity: None
Keywords: Cc:

Description (last modified by Jpm)

Bug described in this link :

Test reproducing the issue :

    #include <Array.au3>
    Global $aSortTest[2][3] = [["1a", "1b", "1c"], ["2a", "2b", "2c"]]

Clicking on a column header doesn't show the sort arrow for either ascending or descending order.

Cause :
Line 563 in ArrayDisplayInternals.au3 (version sends a wrong message, because it uses a handle instead of a control id

Local $hHeader = HWnd(GUICtrlSendMsg($hWnd, 0x101F, 0, 0))

How to fix this (lines 558 to 563)

/ Actual wrong code :

Func ArrayDisplay_RegisterSortCallBack($hWnd, $vCompareType = 2, $bArrows = True, $sSort_Callback = "ArrayDisplay_SortCallBack")


If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd)

;~ Local Const $LVM_GETHEADER = (0x1000 + 31) ; 0x101F

Local $hHeader = HWnd(GUICtrlSendMsg($hWnd, 0x101F, 0, 0))

/ Suggested correct code :

Func ArrayDisplay_RegisterSortCallBack($ControlID, $vCompareType = 2, $bArrows = True, $sSort_Callback = "ArrayDisplay_SortCallBack")


;~ Local Const $LVM_GETHEADER = (0x1000 + 31) ; 0x101F

Local $hHeader = HWnd(GUICtrlSendMsg($ControlID, 0x101F, 0, 0))

Local $hWnd = GUICtrlGetHandle($ControlID)

Attachments (0)

Change History (3)

comment:1 Changed 2 years ago by pixelsearch

The part "Test reproducing the issue" did paste poorly.
It can be found on the forum (link at the top of the report)

comment:2 Changed 2 years ago by Jpm

  • Description modified (diff)

fix original description badly formatted

comment:3 Changed 2 years ago by Jpm

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

Fixed by revision [12445] 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 Jpm.

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

Note: See TracTickets for help on using tickets.