Modify

Opened 14 years ago

Closed 14 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 Changed 14 years ago by Zedna

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 Changed 14 years ago by Zedna

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 Changed 14 years ago by Zedna

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 Changed 14 years ago by Valik

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

Fixed by revision [5429] in version: 3.3.1.7

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

Action
as closed The owner will remain Valik.
Author


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

 
Note: See TracTickets for help on using tickets.