override left property
Posted on 2001-08-07
Hi I'm creating a TGroupbox component and want to get a notification when the left value is changed so.
procedure SetLeft(const Value: Integer);
property Left: Integer read FLeft write SetLeft;
procedure TCheckGroupBox.SetLeft(const Value: Integer);
FLeft := Value;
inherited Left := Value;
//Do my stuff
When I place the component on the form the left value is set to 0, how do I set it to the inherited value?
Should I perhaps use a different way than making the left property, the way I do now.