2009-11-27 13:55 UTC
Hi,
something must have been changed. I can tell that the following was not so in OpenDCL 5.1.2.3 .
I have a palette.
There is a listview in the palette.
DragBegin is not allowed.
When shift key will be pressed OnKeyDown will be relesed to allow DragBegin (my idea was to allow only Drag&Drop by holding shift key to avoid unwanted moving)
While holding shift key another list view item is being picked to select a range of items. AllowDragBegin is still active.
When clicking the other listview item for selecting a range OnDragBegin and OnDragDropFromControl will be released although I didn't drag long enough that drag&drop should be started. In the end the latest picked item will disappear although nothing happens in the OnDragDropFromControl event.
Released events:
lst_prop_OnClicked = start of range
lst_prop_OnKeyDown: 16 - 42 = press shift key
lst_prop_OnKeyDown: 16 - 16426 (multiple times while holding shift key)
lst_prop_OnClicked = End of range
lst_prop_OnSetFocus
lst_prop_OnDragnDropBegin
lst_prop_OnDragnDropFromControl
lst_prop_OnKeyUp: 16 - -16342
That would be dangerous if clicking an item in a listview with enabled and allowed DragBegin and enabled and allowed Drop would cause the remove of items.
I hope that I early find the time for the sample...
Fred
something must have been changed. I can tell that the following was not so in OpenDCL 5.1.2.3 .
I have a palette.
There is a listview in the palette.
DragBegin is not allowed.
When shift key will be pressed OnKeyDown will be relesed to allow DragBegin (my idea was to allow only Drag&Drop by holding shift key to avoid unwanted moving)
While holding shift key another list view item is being picked to select a range of items. AllowDragBegin is still active.
When clicking the other listview item for selecting a range OnDragBegin and OnDragDropFromControl will be released although I didn't drag long enough that drag&drop should be started. In the end the latest picked item will disappear although nothing happens in the OnDragDropFromControl event.
Released events:
lst_prop_OnClicked = start of range
lst_prop_OnKeyDown: 16 - 42 = press shift key
lst_prop_OnKeyDown: 16 - 16426 (multiple times while holding shift key)
lst_prop_OnClicked = End of range
lst_prop_OnSetFocus
lst_prop_OnDragnDropBegin
lst_prop_OnDragnDropFromControl
lst_prop_OnKeyUp: 16 - -16342
That would be dangerous if clicking an item in a listview with enabled and allowed DragBegin and enabled and allowed Drop would cause the remove of items.
I hope that I early find the time for the sample...
Fred
