Jump to content
Sign in to follow this  
jcbk101

Build for release

Recommended Posts

Hello all.

 

I have an issue where I extended a TControl component class call TControlEx for use in am FMX project. I used it to gain access to non-accessible properties.

It runs perfectly in Debug build, but as soon as I try to build for release, it sees the 'access' methods, but I get errors such as:

[bcc32 Error] ControlsForm.cpp: E2247 'TControl::Scale' is not accessible

 

Hoping someone can assist with this error. Thank you. 

Please see extended class below.

 

//--------------------------------------
//
//Accessor for protected data
//
//--------------------------------------
class TControlEx: public TControl
{
private:



public:
	//Setters
	void setScaleX(float X)
	{
		Scale->X = X;
	}


	void setScaleY(float Y)
	{
		Scale->Y = Y;
	}


	void setRotationAngle(float Angle)
	{
		RotationAngle = Angle;
	}


	void setRotationCenterX(float X)
	{
		RotationCenter->X = X;
	}


	void setRotationCenterY(float Y)
	{
		RotationCenter->Y = Y;
	}


	//Getters
	float getScaleX()
	{
		return Scale->X;
	}


	float getScaleY()
	{
		return Scale->Y;
	}


	float getRotationAngle()
	{
		return RotationAngle;
	}


	float getRotationCenterX()
	{
		return RotationCenter->X;
	}


	float getRotationCenterY()
	{
		return RotationCenter->Y;
	}

};

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×