OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Denisko-Redisko on 01 Aug 2009, 21:22:57
-
During the drag&drop dragged item doesn't become active. I had hoped to correct this by adding in the handler "LBDrag" following lines:
#define arg(X) (_this select (X))
...
arg(0) lbSetCurSel arg(1)
however, the miracle! despite the wiki documentation:
onLBDrag -- Drag & drop operation started. -- Returns the control and the selected element index.
second argument (of LBDrag-handler), it is not a index (CurSel), an array of the contents: [lbText, lbValue, lbData]
Damn, this is a very witty! :( And how do i work around this problem?
(http://www7.picfront.org/picture/9H6W0SGD/thb/lbdrag-bug-2.png) (http://www.picfront.org/d/9H6W0SGD/lbdrag-bug-2.png)