Board index » delphi » Container Types // getting a little confused
Donald Cameron
![]() Delphi Developer |
Wed, 26 Feb 2003 06:24:49 GMT
Container Types // getting a little confused
I "can" "see" my TServiceEvent after assigning a parent - (form1 in this
case), but I still cannot see my StopTime or StartTime. Does creating an instance of TServiceEvent "auto-instantiate" StopTime and StartTime or must I create an instance of each within TServiceEvent.Create? ******************************* Type TServiceEvent = Class(Tpanel) protected StopTime : TStopTime; {class(TCustomMaskEdit)} StartTime : TStartTime; {class(TCustomMaskEdit)} public constructor Create(AOwner : TComponent);override; end; ..... ..... constructor TStartTime.Create(AOwner : TComponent); begin inherited create(AOwner); Left := 11; Top := 6; Width := 34; Height := 21; Visible := true; end; constructor TStopTime.Create(AOwner : TComponent); constructor TServiceEvent.Create(AOwner : TComponent); -- |