Modify

#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 Zedna, on Nov 27, 2009 at 9:18:41 AM

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.

comment:2 by Zedna, on Nov 27, 2009 at 9:23:22 AM

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 Zedna, on Nov 28, 2009 at 1:49:47 PM

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 Valik, on Dec 4, 2009 at 9:03:12 PM

Milestone: 3.3.1.7
Owner: set to Valik
Resolution: Fixed
Status: newclosed

Fixed by revision [5429] in version: 3.3.1.7

Modify Ticket

Action
as closed The owner will remain Valik.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.