procedure AnalogClock_Comp(Location: TWinControl; NumOfComp: Integer; Left,Top,Height,Width: Integer; NewTime: TTime; Visible: Boolean);
procedure AnalogClock_Comp(Location: TWinControl; NumOfComp: Integer; Left,Top,Height,Width: Integer; NewTime: TTime; Visible: Boolean);
begin
MyAnalogClock := TAnalogClock.Create(Conf);
MyAnalogClock.Name := 'MyAnalogClock' + IntToStr(NumOfComp);
MyAnalogClock.Parent := Location;
MyAnalogClock.Left := Left;
MyAnalogClock.Top := Top;
MyAnalogClock.Height := Height;
MyAnalogClock.Width := Width;
MyAnalogClock.Style := acModern;
MyAnalogClock.Tag := NumOfComp;
MyAnalogClock.Visible := Visible;
MyAnalogClock.Active := True;
MyAnalogClock.Time := NewTime;
MyAnalogClock.Cursor := Arrow;
end;
AnalogClock_Comp(TsPanel(comp),num-1,5,10,50,60,Ctime[num - 1],True);
Ctime: array [0..9] of TTime;
Ctime[num - 1] := now;
CTime[num - 1] := IncHour(Ctime[num - 1],StrToInt(dtHour)); // dtHour is integer := 1;
CTime[num - 1] := IncHour(Ctime[num - 1],StrToInt('-'+dtMyTimeZone)); //dtMyTimeZone is integer := 2;
Return to DELPHI AREA Projects
Users browsing this forum: Bing [Bot] and 34 guests