You've already forked lazarus-ccr
GridPrinter: Minor cleanup.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8767 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -56,14 +56,15 @@ object Form1: TForm1
|
|||||||
end
|
end
|
||||||
object GridPrinter1: TGridPrinter
|
object GridPrinter1: TGridPrinter
|
||||||
Grid = StringGrid1
|
Grid = StringGrid1
|
||||||
Footer.Font.Height = -11
|
Footer.FontSize = 0
|
||||||
Header.Font.Height = -11
|
|
||||||
Header.Text = 'test||'
|
Header.Text = 'test||'
|
||||||
|
Header.FontSize = 0
|
||||||
ShowPrintDialog = gpdPrintDialog
|
ShowPrintDialog = gpdPrintDialog
|
||||||
Left = 168
|
Left = 168
|
||||||
Top = 96
|
Top = 96
|
||||||
end
|
end
|
||||||
object GridPrintPreviewDialog1: TGridPrintPreviewDialog
|
object GridPrintPreviewDialog1: TGridPrintPreviewDialog
|
||||||
|
FormParams.PixelsPerInch = 96
|
||||||
GridPrinter = GridPrinter1
|
GridPrinter = GridPrinter1
|
||||||
Left = 288
|
Left = 288
|
||||||
Top = 96
|
Top = 96
|
||||||
|
@ -6,8 +6,7 @@ interface
|
|||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Grids, StdCtrls,
|
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, Grids, StdCtrls,
|
||||||
ComboEx,
|
PrintersDlgs, GridPrn, GridPrnPreviewDlg;
|
||||||
PrintersDlgs, GridPrn, GridPrnPreviewForm, GridPrnPreviewDlg;
|
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
@ -5,7 +5,8 @@ unit GridPrn;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Types, Graphics, StdCtrls, Grids, Printers, PrintersDlgs;
|
Classes, SysUtils, LCLVersion, Types, Graphics, StdCtrls, Grids,
|
||||||
|
Printers, PrintersDlgs;
|
||||||
|
|
||||||
type
|
type
|
||||||
TGridPrinter = class; // forward declaration
|
TGridPrinter = class; // forward declaration
|
||||||
@ -1411,7 +1412,11 @@ var
|
|||||||
begin
|
begin
|
||||||
// Determine size of checkbox
|
// Determine size of checkbox
|
||||||
details := ThemeServices.GetElementDetails(arrtb[ACheckState]);
|
details := ThemeServices.GetElementDetails(arrtb[ACheckState]);
|
||||||
|
{$IF LCL_FullVersion >= 2030000}
|
||||||
|
cSize := ThemeServices.GetDetailSizeForPPI(Details, ScreenInfo.PixelsPerInchX);
|
||||||
|
{$ELSE}
|
||||||
cSize := ThemeServices.GetDetailSize(Details);
|
cSize := ThemeServices.GetDetailSize(Details);
|
||||||
|
{$IFEND}
|
||||||
cSize.cx := {%H-}ScaleX(cSize.cx);
|
cSize.cx := {%H-}ScaleX(cSize.cx);
|
||||||
cSize.cy := {%H-}ScaleY(cSize.cy);
|
cSize.cy := {%H-}ScaleY(cSize.cy);
|
||||||
// Position the checkbox within the given rectangle, ARect.
|
// Position the checkbox within the given rectangle, ARect.
|
||||||
|
@ -103,6 +103,7 @@ object GridPrintPreviewForm: TGridPrintPreviewForm
|
|||||||
BorderSpacing.Top = 2
|
BorderSpacing.Top = 2
|
||||||
BevelOuter = bvNone
|
BevelOuter = bvNone
|
||||||
Color = clRed
|
Color = clRed
|
||||||
|
ParentBackground = False
|
||||||
ParentColor = False
|
ParentColor = False
|
||||||
TabOrder = 0
|
TabOrder = 0
|
||||||
end
|
end
|
||||||
@ -268,6 +269,7 @@ object GridPrintPreviewForm: TGridPrintPreviewForm
|
|||||||
ClientHeight = 619
|
ClientHeight = 619
|
||||||
ClientWidth = 897
|
ClientWidth = 897
|
||||||
Color = clAppWorkspace
|
Color = clAppWorkspace
|
||||||
|
ParentBackground = False
|
||||||
ParentColor = False
|
ParentColor = False
|
||||||
TabOrder = 1
|
TabOrder = 1
|
||||||
TabStop = True
|
TabStop = True
|
||||||
|
@ -5,7 +5,7 @@ unit GridPrnPreviewForm;
|
|||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Forms, Controls, Graphics, Types, LazLoggerBase,
|
Classes, SysUtils, Forms, Controls, Graphics, Types,
|
||||||
StdCtrls, ExtCtrls, ComCtrls, Dialogs, Menus, ActnList,
|
StdCtrls, ExtCtrls, ComCtrls, Dialogs, Menus, ActnList,
|
||||||
GridPrn;
|
GridPrn;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user