Jump to content
Sign in to follow this  
bull_a

Problem CtrlSetPos

Recommended Posts

Title ^^

Im having a few problems setting the position of a control dynamically in a script

//BUL_UAV_terminal_buttonConnect.sqf
hint "POSITION ""ON""";
//moves the frame to "on" position
BUL_UAV_terminal_UAV_onFramePosY = (ctrlPosition ((findDisplay 1) displayCtrl 1012) select 1) * safeZoneY;
BUL_UAV_terminal_UAV_selectFramePos = (ctrlPosition ((findDisplay 1) displayCtrl 1802));
//separates the position array
//sets the frames new position
BUL_UAV_terminal_UAV_onFramePos = ((findDisplay 1) displayCtrl 1802) ctrlSetPosition [(0.35351 * safezoneW + safezoneX), (0.312962 * safezoneH + safezoneY), (0.0206306 * safezoneW), (0.0198041 * safezoneH)];

i have selected the correct control however when the script launches the frame control does not seem to move.

any suggestions?

Thanks

Bull

Share this post


Link to post
Share on other sites

Dont you have todo something like a ctrlCommit to get the change to show??

Share this post


Link to post
Share on other sites

ill have a check of that, never seen that before which maybe why im going wrong,

Thanks Larrow

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  

×