TCustomControl dont more reflect color to child
Original Reporter info from Mantis: leonardoprc
-
Reporter name: Leonardo Pinto
Original Reporter info from Mantis: leonardoprc
- Reporter name: Leonardo Pinto
Description:
I developed a component that consists of inside placing of the TCustomControl a TCustomMaskEdit. It was using without problems with the version of Lazarus 0.9.16. After Lazarus update to version 0.9.21, the child component TCustomMaskEdit son insists on remaining white, and dont inherit color from parent.
Steps to reproduce:
// basically this:
constructor TMyCustomControl.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
ControlStyle := ControlStyle + [csAcceptsControls, csReplicatable];
FMyEdit := TMyCustomMaskEdit.Create (Self);
FMyEdit.Parent := Self;
end;
//--
constructor TMyCustomMaskEdit.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
ControlStyle := ControlStyle + [csNoDesignSelectable,
csCaptureMouse, csReplicatable];
ParentColor := True;
ParentFont := True;
end;
Mantis conversion info:
- Mantis ID: 7948
- OS: Fedora Core
- OS Build: 5
- Build: 0.9.21
- Platform: 32bits
- Target version: 0.9.22