Opened 16 years ago
Closed 16 years ago
#1312 closed Bug (Fixed)
_GUIImageList_BeginDrag.au3 - example in helpfile
| Reported by: | Zedna | Owned by: | Valik |
|---|---|---|---|
| Milestone: | 3.3.1.7 | Component: | Documentation |
| Version: | 3.3.1.6 | Severity: | None |
| Keywords: | Cc: |
Description
"C:\Program Files\AutoIt3\Beta\Examples\Helpfile\_guiimagelist_begindrag.au3"
1) on my WINXP SP2 Czech it doesn't show any image at cursor position while draging listview items (also cursor doesn't change to draging cursor)
2) there is bug: after draging is set bad item text at target (dropped) position --> only first letter is shown in first column of listview
3) I suggest this change/correction to show implemented also "autoscrolling" while draging:
... ;~ $hListView = _GUICtrlListView_Create($main_GUI, "Entry Name|Category", 5, 75, 220, 280, -1, BitOR($WS_EX_CLIENTEDGE, $WS_EX_STATICEDGE)) $hListView = _GUICtrlListView_Create($main_GUI, "Entry Name|Category", 5, 75, 220, 180, -1, BitOR($WS_EX_CLIENTEDGE, $WS_EX_STATICEDGE)) ;~ $LV_Height = 280 - 75 ; --> this was wrong in original $LV_Height = 180 ...
Attachments (0)
Change History (4)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
ad 2)
The same applies also to another function:
Func _LVCopyItem($i_FromItem, $i_ToItem, $i_SubItem = 0)
Local $struct_LVITEM = DllStructCreate($tagLVITEM)
Local $struct_String = DllStructCreate("char Buffer[4096]")
Local $sBuffer_pointer = DllStructGetPtr($struct_String)
comment:3 by , 16 years ago
ad 3)
Purpose of that change is to have vertical scrollbar visible in listview (set less hight of listview) to be able to test implemented "autoscrolling" while draging functionality. BTW: That autoscrolling works very nice.
comment:4 by , 16 years ago
| Milestone: | → 3.3.1.7 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed by revision [5429] in version: 3.3.1.7

ad 2)
I found this bug:
Func _LVInsertItem($i_FromItem, $i_ToItem) Local $item_state, $i_newIndex Local $struct_LVITEM = DllStructCreate($tagLVITEM) Local $struct_String = DllStructCreate("char Buffer[4096]") Local $sBuffer_pointer = DllStructGetPtr($struct_String) ...There should be wchar instead of char:
Local $struct_String = DllStructCreate("wchar Buffer[4096]")I think this kind of ANSI/Unicode bug probably will be also in another standard UDFs.