Modify ↓
Opened 16 years ago
Closed 16 years ago
#739 closed Bug (Works For Me)
_GUICtrlTreeView_SetInsertMark with $hItem=0 does not remove the insertion mark
Reported by: | j0linus | Owned by: | Gary |
---|---|---|---|
Milestone: | Component: | Standard UDFs | |
Version: | 3.2.13.12 | Severity: | None |
Keywords: | GuiTreeView.au3 | Cc: |
Description
Instead of removing the insertion mark, it is set above/below the first TreeviewItem.
i think reason for this:
If Not IsHWnd($hItem) Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem)
so resolution would be:
If Not IsHWnd($hItem) AND $hItem<>0 Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem)
By the way i noticed that the check for a valid Treeview handle should be done before the check for a valid TreeItem handle.
Result:
If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) If Not IsHWnd($hItem) AND $hItem<>0 Then $hItem = _GUICtrlTreeView_GetItemHandle($hWnd, $hItem)
Attachments (0)
Change History (1)
comment:1 Changed 16 years ago by Gary
- Resolution set to Works For Me
- Status changed from new to closed
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.
Note: See
TracTickets for help on using
tickets.
Works for me: