Jump to content
Sign in to follow this  
HazJ

RscControlsGroup positioning

Recommended Posts

Hi,

I am using to ctrlCreate to create a controls group (RscControlsGroup) but I'm having an issue when I position a control inside it all the way to the right side. It adds a scrollbar and positions the control all the way right but past the whole width... Any ideas?

0 (all the way left) seems to be fine and working but when I set a control position to 1 it does the above issue. Here is how I create the RscControlsGroup:

_display = findDisplay 13579;

_purchaseContainer = _display ctrlCreate ["RscControlsGroup", 700];
_purchaseContainer ctrlSetPosition
[
	(0.075 * safezoneW + safezoneX),
	(0.24 * safezoneH + safezoneY),
	(0.275 * safezoneW),
	(0.6 * safezoneH)
];
_purchaseContainer ctrlCommit 0;

 

Share this post


Link to post
Share on other sites

A value of 1 sets the left corner in the right edge of the container, it should be 1-width

Sent from my D6503 using Tapatalk

  • Like 1

Share this post


Link to post
Share on other sites

Fixed. Thank you!

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  

×