|
@@ -55,6 +55,7 @@ type
|
|
constructor Init(var Bounds: TRect);
|
|
constructor Init(var Bounds: TRect);
|
|
constructor InitKb(var Bounds: TRect);
|
|
constructor InitKb(var Bounds: TRect);
|
|
procedure HandleEvent(var Event: TEvent); virtual;
|
|
procedure HandleEvent(var Event: TEvent); virtual;
|
|
|
|
+ function GetPalette: PPalette; virtual;
|
|
end;
|
|
end;
|
|
|
|
|
|
PFPClockView = ^TFPClockView;
|
|
PFPClockView = ^TFPClockView;
|
|
@@ -2354,6 +2355,12 @@ begin
|
|
inherited HandleEvent(Event);
|
|
inherited HandleEvent(Event);
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
+function TFPHeapView.GetPalette: PPalette;
|
|
|
|
+const P: string[length(CFPClockView)] = CFPClockView;
|
|
|
|
+begin
|
|
|
|
+ GetPalette:=@P;
|
|
|
|
+end;
|
|
|
|
+
|
|
constructor TFPClockView.Init(var Bounds: TRect);
|
|
constructor TFPClockView.Init(var Bounds: TRect);
|
|
begin
|
|
begin
|
|
inherited Init(Bounds);
|
|
inherited Init(Bounds);
|