samatra 85 Posted September 21, 2012 TSIA: Is it possible to make specific controls\elements hidden from beginning? Sure i can hide them with ctrlShow but when dialog opens you still see these buttons for fraction of a second, I would love to have them hidden by default. Thank you. Share this post Link to post Share on other sites
Deadfast 43 Posted September 21, 2012 Hide them from within the onLoad event: class MyDialog { onLoad = "(_this select 0) call compile preprocessFileLineNumbers ""hideControls.sqf"""; //... }; { (_this displayCtrl _x) ctrlShow false; } forEach [11, 55, 741]; Share this post Link to post Share on other sites
samatra 85 Posted September 21, 2012 Hide them from within the onLoad event: class MyDialog { onLoad = "(_this select 0) call compile preprocessFileLineNumbers ""hideControls.sqf"""; //... }; { (_this displayCtrl _x) ctrlShow false; } forEach [11, 55, 741]; Good idea, thanks a lot! Share this post Link to post Share on other sites
aduke823 63 Posted July 22, 2013 So where do you put this?.......... { (_this displayCtrl _x) ctrlShow false; } forEach [11, 55, 741]; Share this post Link to post Share on other sites
xxanimusxx 2 Posted July 22, 2013 in a sqf-file named "hideControls.sqf" which is in your missions folder (as per Deadfast's example). Share this post Link to post Share on other sites