You've already forked lazarus-ccr
tvplanit: Define initial control size by GetControlClassDefaultSize. New icons in PrintPreview dialog. Consistent 3D look of TVpPrintPreview.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8469 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -39,7 +39,7 @@ uses
|
||||
{$ELSE}
|
||||
Windows, Messages, VpTimerPool,
|
||||
{$ENDIF}
|
||||
SysUtils, Classes, Controls, Dialogs, Forms, Graphics, Menus, Math,
|
||||
SysUtils, Graphics, Types, Classes, Controls, Dialogs, Forms, Menus, Math,
|
||||
VpBase, VpLEDLabel;
|
||||
|
||||
type
|
||||
@@ -227,6 +227,7 @@ type
|
||||
procedure DoOnSecondChange;
|
||||
procedure DoOnCountdownDone;
|
||||
procedure PaintHands(ACanvas: TCanvas);
|
||||
class function GetControlClassDefaultSize: TSize; override;
|
||||
{windows message methods}
|
||||
{$IFDEF LCL}
|
||||
procedure WMResize(var Msg: TLMSize); message LM_SIZE;
|
||||
@@ -580,8 +581,9 @@ constructor TVpCustomClock.Create(AOwner: TComponent);
|
||||
begin
|
||||
inherited Create(AOwner);
|
||||
|
||||
Width := 136;
|
||||
Height := 136;
|
||||
// Initial size of the control
|
||||
with GetControlClassDefaultSize do
|
||||
SetInitialBounds(0, 0, CX, CY);
|
||||
|
||||
FClockMode := cmClock;
|
||||
|
||||
@@ -787,7 +789,13 @@ begin
|
||||
if Assigned (FOnCOuntdownDone) then
|
||||
FOnCountdownDone(self);
|
||||
end;
|
||||
{=====}
|
||||
|
||||
{ Defines the initial size of the control. }
|
||||
class function TVpCustomClock.GetControlClassDefaultSize: TSize;
|
||||
begin
|
||||
Result.CX := 136;
|
||||
Result.CY := 136;
|
||||
end;
|
||||
|
||||
function TVpCustomClock.GetElapsedDays: Integer;
|
||||
var
|
||||
|
Reference in New Issue
Block a user