mORMot and Open Source friends
Check-in [aff2dcadf1]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:fix issue in TGDIPages.AppendRichEdit() when called on a blank page
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: aff2dcadf150c490b158b208a2468ebf95c27b24
User & Date: G018869 2012-04-12 18:21:42
Context
2012-04-12
18:27
  • JSONDecode() overloaded functions now accept parameter names without case sensibility (and a new HandleValuesAsObjectOrArray parameter)
  • new JSONDecode() overloaded function, to properly handle unserialization of a JSON object within a buffer (used e.g. for TDynArrayJSONCustomReader)
  • new TTextWriter.AddJSONEscape() overloaded function, to be used to directly serialize some name/value pairs as a JSON object content (used e.g. for TDynArrayJSONCustomWriter callbacks)
  • fixed some issues in custom TDynArray JSON unserialization count
check-in: ed8a3c8feb user: G018869 tags: trunk
18:21
fix issue in TGDIPages.AppendRichEdit() when called on a blank page check-in: aff2dcadf1 user: G018869 tags: trunk
15:26
added TTextWriter.RegisterCustomJSONSerializer() method to allow JSON serialization of any dynamic array content (used by TDynArray.LoadFromJSON and TTextWriter.AddDynArrayJSON) check-in: 36d0fcd3c7 user: G018869 tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to SQLite3/SQLite3Pages.pas.

163
164
165
166
167
168
169

170
171
172
173
174
175
176
....
4477
4478
4479
4480
4481
4482
4483

4484
4485
4486
4487
4488
4489
4490
  - fixed an issue in TGDIPages.DrawTextAcrossCols when test is exported to pdf
    (wrong clipping region set)
  - if TGDIPages.WordWrapLeftCols=TRUE, won't wrap column headers

  Version 1.16
  - includes new TSynAnsiConvert classes for handling Ansi charsets
  - some minor fixes (e.g. preview landscape or keys for popup menu)

  - enhanced the print preview screen with a left-sided button bar
  - new TGdiPages.RenderGraphic method (accepting both TBitmap and TMetaFile)


*)

interface
................................................................................
  with Range do begin
    LogX := GetDeviceCaps(fCanvas.Handle, LOGPIXELSX);
    LogY := GetDeviceCaps(fCanvas.Handle, LOGPIXELSY);
    rcPage.Left := (fPageMarginsPx.Left*1440) div LogX;
    rcPage.Right := ((fPhysicalSizePx.x-fPageMarginsPx.Right)*1440) div LogX;
    rcPage.Top := ((fPageMarginsPx.Top+fHeaderHeight)*1440) div LogY;
    rcPage.Bottom := ((fPhysicalSizePx.y-fPageMarginsPx.Bottom-fFooterHeight)*1440) div LogY;

    rc := rcPage;
    rc.Top := (fCurrentYPos*1440) div LogY;
    LastChar := 0;
    with TextLenEx do begin
      flags := GTL_DEFAULT;
      codepage := CP_ACP;
    end;






>







 







>







163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
....
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
  - fixed an issue in TGDIPages.DrawTextAcrossCols when test is exported to pdf
    (wrong clipping region set)
  - if TGDIPages.WordWrapLeftCols=TRUE, won't wrap column headers

  Version 1.16
  - includes new TSynAnsiConvert classes for handling Ansi charsets
  - some minor fixes (e.g. preview landscape or keys for popup menu)
  - fix issue in TGDIPages.AppendRichEdit() when called on a blank page
  - enhanced the print preview screen with a left-sided button bar
  - new TGdiPages.RenderGraphic method (accepting both TBitmap and TMetaFile)


*)

interface
................................................................................
  with Range do begin
    LogX := GetDeviceCaps(fCanvas.Handle, LOGPIXELSX);
    LogY := GetDeviceCaps(fCanvas.Handle, LOGPIXELSY);
    rcPage.Left := (fPageMarginsPx.Left*1440) div LogX;
    rcPage.Right := ((fPhysicalSizePx.x-fPageMarginsPx.Right)*1440) div LogX;
    rcPage.Top := ((fPageMarginsPx.Top+fHeaderHeight)*1440) div LogY;
    rcPage.Bottom := ((fPhysicalSizePx.y-fPageMarginsPx.Bottom-fFooterHeight)*1440) div LogY;
    CheckHeaderDone;
    rc := rcPage;
    rc.Top := (fCurrentYPos*1440) div LogY;
    LastChar := 0;
    with TextLenEx do begin
      flags := GTL_DEFAULT;
      codepage := CP_ACP;
    end;