Works, but now I want to add the ability to add events to the main IDD.
this throws no error, but doenst hint when I open the dialog:
DO NOT USE
CLM_DlgCtrl =
{
_dialog = _this select 0;
_dlgIDD = _this select 1;
_code = _this select 2;
_codeArray = _this select 3;
_ok = createDialog _dialog;
if (!_code) exitWith {};
{
if (_x select 0) then
{
(findDisplay _dlgIDD) displayAddEventHandler [(_x select 2), (_x select 3)];
}
else
{
((findDisplay _dlgIDD) displayCtrl (_x select 1)) ctrlAddEventHandler [(_x select 2), (_x select 3)];
};
} foreach _codeArray;
nil;
};
Calls With:
[
"clm_dlgBank",
202,
true,
[
[
true,
202,
"OnLoad",
"hint 'DIALOG OPEN'"
],
[
false,
303,
"ButtonDown",
"hint 'CLOSE BUTTON'"
]
]
] spawn CLM_DlgCtrl;