Jump to content
Sign in to follow this  
lxets

Clear RscControlsGroup

Recommended Posts

Hey, I have created a controls group with various buttons/images, and I am wondering if its possible to delete everything within a controls group at once, without them having an idc.

Thanks.

Share this post


Link to post
Share on other sites

Not without an IDC. Im hoping that the command allControls will be extended in the future to except a RscControlsGroup control. I did experiment with ctrlParent, but that will still only return the display (not the RscControlsGroup)

Share this post


Link to post
Share on other sites

Ah ok, do you know how to go about clearing a control group then, I can't seem to use ctrlDelete on any controls within the control group, even with an IDC. 

_controls = allControls findDisplay 8000;
{
	if (ctrlIDC _x > 8018) then {ctrlDelete _x};
}forEach _controls;

//Also tried


_controls = allControls findDisplay 8000;
{
   if (ctrlIDC _x > 8018) then {ctrlDelete ((findDisplay 8000) displayctrl (ctrlIDC _x))};
}forEach _controls;

I can use ctrlShow etc to hide the controls in the same way im trying to delete them, so I guess im just using ctrlDelete wrong, but I can't get it to work.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×