Jump to content

jcbk101

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral
  1. jcbk101

    Build for release

    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; } };
×