You've already forked lazarus-ccr
tvplanit: Fix printing of incorrect dates. Introduced in one of previous commits.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8510 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1709,9 +1709,9 @@ var
|
|||||||
Granularity,
|
Granularity,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
Element.DayOffset := TvpGanttView(RenderControl).VisibleCols;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
RenderControl.RenderToCanvas(
|
RenderControl.RenderToCanvas(
|
||||||
ACanvas,
|
ACanvas,
|
||||||
@ -1759,6 +1759,9 @@ begin
|
|||||||
|
|
||||||
for i := 0 to FPrintFormats.Items[CurFormat].Elements.Count - 1 do begin
|
for i := 0 to FPrintFormats.Items[CurFormat].Elements.Count - 1 do begin
|
||||||
elem := FPrintFormats.Items[CurFormat].Elements.Items[i];
|
elem := FPrintFormats.Items[CurFormat].Elements.Items[i];
|
||||||
|
if elem.ItemType = itGanttView then
|
||||||
|
elem.DayOffsetUnits := duDay;
|
||||||
|
|
||||||
GetPrintRectangle(elem);
|
GetPrintRectangle(elem);
|
||||||
|
|
||||||
if elem.ItemType = itCaption then begin
|
if elem.ItemType = itCaption then begin
|
||||||
|
@ -14,6 +14,7 @@ object frmPrintPreview: TfrmPrintPreview
|
|||||||
OnCreate = FormCreate
|
OnCreate = FormCreate
|
||||||
OnKeyDown = FormKeyDown
|
OnKeyDown = FormKeyDown
|
||||||
OnShow = FormShow
|
OnShow = FormShow
|
||||||
|
LCLVersion = '2.3.0.0'
|
||||||
object Panel1: TPanel
|
object Panel1: TPanel
|
||||||
Left = 0
|
Left = 0
|
||||||
Height = 56
|
Height = 56
|
||||||
@ -50,7 +51,7 @@ object frmPrintPreview: TfrmPrintPreview
|
|||||||
end
|
end
|
||||||
object ToolButton3: TToolButton
|
object ToolButton3: TToolButton
|
||||||
Left = 55
|
Left = 55
|
||||||
Height = 25
|
Height = 5
|
||||||
Top = 0
|
Top = 0
|
||||||
Caption = 'ToolButton3'
|
Caption = 'ToolButton3'
|
||||||
ImageIndex = 2
|
ImageIndex = 2
|
||||||
@ -86,7 +87,7 @@ object frmPrintPreview: TfrmPrintPreview
|
|||||||
end
|
end
|
||||||
object ToolButton8: TToolButton
|
object ToolButton8: TToolButton
|
||||||
Left = 152
|
Left = 152
|
||||||
Height = 25
|
Height = 5
|
||||||
Top = 0
|
Top = 0
|
||||||
Caption = 'ToolButton8'
|
Caption = 'ToolButton8'
|
||||||
ImageIndex = 6
|
ImageIndex = 6
|
||||||
|
@ -275,8 +275,6 @@ begin
|
|||||||
DoFormPlacement(EditForm);
|
DoFormPlacement(EditForm);
|
||||||
|
|
||||||
EditForm.WindowState := WindowState;
|
EditForm.WindowState := WindowState;
|
||||||
EditForm.VpPrintPreview1.ControlLink := ControlLink;
|
|
||||||
EditForm.VpPrintFormatComboBox1.ControlLink := ControlLink;
|
|
||||||
EditForm.VpPrintPreview1.StartDate := StartDate;
|
EditForm.VpPrintPreview1.StartDate := StartDate;
|
||||||
EditForm.VpPrintPreview1.EndDate := EndDate;
|
EditForm.VpPrintPreview1.EndDate := EndDate;
|
||||||
EditForm.VpPrintPreview1.ZoomFactor := ZoomFactor;
|
EditForm.VpPrintPreview1.ZoomFactor := ZoomFactor;
|
||||||
@ -285,7 +283,8 @@ begin
|
|||||||
EditForm.VpPrintPreview1.ForceUpdate;
|
EditForm.VpPrintPreview1.ForceUpdate;
|
||||||
EditForm.VpPrintPreview1.FirstPage;
|
EditForm.VpPrintPreview1.FirstPage;
|
||||||
EditForm.DrawingStyle := FDrawingStyle;
|
EditForm.DrawingStyle := FDrawingStyle;
|
||||||
// EditForm.PageInfo.Caption := Format('%d pages', [EditForm.VpPrintPreview1.PageCount]);
|
EditForm.VpPrintPreview1.ControlLink := ControlLink;
|
||||||
|
EditForm.VpPrintFormatComboBox1.ControlLink := ControlLink;
|
||||||
EditForm.ShowModal;
|
EditForm.ShowModal;
|
||||||
if EditForm.ReturnCode = rtCommit then begin
|
if EditForm.ReturnCode = rtCommit then begin
|
||||||
Result := True;
|
Result := True;
|
||||||
|
Reference in New Issue
Block a user