Search the Community
Showing results for tags 'ct_listnbox'.
Found 2 results
-
I'd like some guidance on how to input and display data in a CT_LISTNBOX. I'm having a hard time figuring out how to get data inserted into specific columns and have those entries displayed. There are obviously some fundamental elements missing from my understanding. I'm attaching my surrent experimental code. Many elements will be changed once I can get this particular train out of the station. My defines.hpp: My dialog: My script: Screenshot of the dialog with annotations: I've been playing with many versions of lbAdd, lbAddRow, lbSetData, lbSetText. Many, many, many more versions than are shown here. With the current set, only the last entry in the array is displayed, the 2nd and 3rd show up as tooltips. Any help is appreciated.
- 1 reply
-
- ct_listnbox
- dialog
-
(and 1 more)
Tagged with:
-
Hi, Is there a good tutorial out there that explains how to build a multi column listbox? I want to display the unit type in the first column and its cost in the 2nd column Unit | Cost ____________|_________ Rifleman | 100 Grenadier | 150 Marksman | 200 I am using the CT_LISTNBOX and lbAddRow but for some reason it is putting two entries next to each other in 1 row instead of below each other, see screenshot here: https://imgur.com/a/woZPgV6 class listboxUnitSelection: RscListNBox { idc = 1501; type = CT_LISTNBOX; onLBSelChanged = "[_this] execVM 'displayUnitDetails.sqf'"; x = 0.35 * safezoneW + safezoneX; y = 0.36 * safezoneH + safezoneY; w = 0.2749206 * safezoneW; h = 0.2 * safezoneH; columns[] = {0.3, 0.6}; colorDisabled[] = {1,1,1,0.3}; disableOverflow = true; idcLeft = -1; idcRight = -1; class ListScrollBar : ScrollBar //ListScrollBar is class name required for Arma 3 { color[] = {1,1,1,0.6}; colorActive[] = {1,1,1,1}; colorDisabled[] = {1,1,1,0.3}; thumb = "#(argb,8,8,3)color(1,1,1,1)"; arrowEmpty = "#(argb,8,8,3)color(1,1,1,1)"; arrowFull = "#(argb,8,8,3)color(1,1,1,1)"; border = "#(argb,8,8,3)color(1,1,1,1)"; shadow = 0; }; }; and here my lbAddRow { hint format ["_x: \n%1", _x]; //_ctrlUnitListBox lbAdd (_x select 1); _ctrlUnitListBox lnbAddRow [(_x select 1),"COL2"]; } forEach availableUnitsList;