Create a listBox, defined in MissionConfig with canDrag=1.
Reposition it proberly, add listBox Item and try to drag it.
Dragging isnt working.
Description
Description
Details
Details
- Severity
- Major
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Operating System Version
- 1.69 Dev
- Category
- Controls
Steps To Reproduce
Add to description.ext
class CRA_RscListBox { style = 16; idc = -1; type = 5; w = 0.275; h = 0.04; font = "PuristaMedium"; colorSelect[] = {1, 1, 1, 1}; colorText[] = {1, 1, 1, 1}; colorBackground[] = {0.28,0.28,0.28,0.28}; colorSelect2[] = {1, 1, 1, 1}; colorSelectBackground[] = {0.95, 0.95, 0.95, 0.5}; colorSelectBackground2[] = {1, 1, 1, 0.5}; colorScrollbar[] = {0.2, 0.2, 0.2, 1}; colorPicture[] = {1,1,1,1}; colorPictureSelected[] = {1,1,1,1}; colorPictureDisabled[] = {1,1,1,1}; arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa"; arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa"; wholeHeight = 0.45; rowHeight = 0.04; color[] = {0.7, 0.7, 0.7, 1}; colorActive[] = {0,0,0,1}; colorDisabled[] = {0,0,0,0.3}; sizeEx = 0.023; soundSelect[] = {"",0.1,1}; soundExpand[] = {"",0.1,1}; soundCollapse[] = {"",0.1,1}; maxHistoryDelay = 1; autoScrollSpeed = -1; autoScrollDelay = 5; autoScrollRewind = 0; tooltipColorText[] = {1,1,1,1}; tooltipColorBox[] = {1,1,1,1}; tooltipColorShade[] = {0,0,0,0.65}; class ListScrollBar: CRA_RscScrollBar { color[] = {1,1,1,1}; autoScrollEnabled = 1; }; }; class invTileBox : CRA_RscListBox { idc = -1; canDrag = 1; rowHeight = 0.042 * safezoneH; colorBackground[] = {0,0,0,0.3}; colorSelectBackground[] = {0,0,0,0}; colorSelectBackground2[] = {0,0,0,0}; onLBDrag ="systemChat str _this"; onLBDrop = ""systemChat str _this"; onLBDblClick = "systemChat str _this"; x = 0; y = 0; w = 0.028 * safezoneW; h = 0.05 * safezoneH; };
DebugConsole:
box = (findDisplay 49) ctrlCreate ["invTileBox",-1]; box ctrlSetPosition [0,0]; box ctrlCommit 0; _a = box lbAdd "test"; box lbSetPicture [_a,"icons\ico_baumwolle_u.paa"];
Try to drag, doesnt work