From e7147ddb1e52c63ce97632d313752c892d2853b9 Mon Sep 17 00:00:00 2001 From: mattias Date: Fri, 2 Jun 2017 20:57:43 +0000 Subject: [PATCH] docs: fixed xml git-svn-id: branches/fixes_1_8@55174 - --- docs/xml/lcl/forms.xml | 34 ++++++++++++++++++------ docs/xml/lcl/graphics.xml | 56 +++++++++++++-------------------------- 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/docs/xml/lcl/forms.xml b/docs/xml/lcl/forms.xml index bcb4d72cd4..a89f16b702 100644 --- a/docs/xml/lcl/forms.xml +++ b/docs/xml/lcl/forms.xml @@ -9247,15 +9247,33 @@ ShowModal creates its own event loop calling ProcessMessages. When True every form must have a resource (e.g. a .res file). An exception is raised if the resource is missing when creating a form. - The form resource is the lfm file compiled into the executable of your application. For this flag it does not matter if it was compiled via an lrs file or via fpcres. The resource is automatically loaded by TForm and therfore any descendant when it is created via Create(Owner). If the resource is missing there is something wrong with either a resource or the unit which contains the faulty form. If the flag is false you will see a blank form and probably search a long time what is wrong. If you set this flag to true you get an exception. - -For creating forms without resources you have 3 options: -
  • Create a TForm class (not a descendant)
  • Construct your form using the CreateNew() constructor.
  • It is also possible to disable the exception by setting the global variable RequireDerivedFormResource to False.
  • + +

    The form resource is the lfm file compiled into the executable of + your application. For this flag it does not matter if it was compiled + via an lrs file or via fpcres. The resource is automatically loaded by + TForm and therfore any descendant when it is created via Create(Owner). + If the resource is missing there is something wrong with either a + resource or the unit which contains the faulty form. + If the flag is false you will see a blank form and probably search + a long time what is wrong. If you set this flag to true you get an exception. +

    +

    + For creating forms without resources you have 3 options: +

    +
      +
    • Create a TForm class (not a descendant)
    • +
    • Construct your form using the CreateNew() constructor.
    • +
    • It is also possible to disable the exception by setting the global + variable RequireDerivedFormResource to False.
    -History: - -Before 0.9.31 there was no exception. Therefore some resourceless forms might use the standard constructor Create(Owner) and will now get exceptions. This change is Delphi compatible and compatible with TFrame and TDataModule components. -
    +

    + History: + Before 0.9.31 there was no exception. Therefore some resourceless forms + might use the standard constructor Create(Owner) and will now get + exceptions. This change is Delphi compatible and compatible with + TFrame and TDataModule components. +

    + ? diff --git a/docs/xml/lcl/graphics.xml b/docs/xml/lcl/graphics.xml index 9ff05ac90b..e3ba4ef328 100644 --- a/docs/xml/lcl/graphics.xml +++ b/docs/xml/lcl/graphics.xml @@ -6056,52 +6056,34 @@ Calling the MoveTo - - - - - - - - TextRect - writes the specified text string in the rectangle at specified position, with optionally specified style - - - - - - - - - - - - - - - - - - - - Writes Text string within a specified rectangle, according to predefined Style - Writes Text string within a specified rectangle, according to predefined Style
    - The boundaries of the rectangle are specified in ARect
    X, Y define the starting point for writing the Text within the rectangle.
    - TextStyle determines whether the text is justified, centered, word-wrapped, clipped at the rectangle boundaries, etc. If the Style argument is omitted, defaults are assumed.
    -
    - Note: +

    + Writes Text string within a specified rectangle, according + to predefined Style +

    +

    The boundaries of the rectangle are specified in ARect +

    +

    X, Y define the starting point for writing the + Text within the rectangle. +

    +

    + TextStyle determines whether the text is justified, + centered, word-wrapped, clipped at the rectangle boundaries, etc. + If the Style argument is omitted, defaults are assumed. +

    +

    + Note: The exact text position depends on the specified rectangle, the TextStyle of the canvas, and the X, Y coordinates: +

      -
    • TextStyle.Alignment = taLeftJustify: Text begins at X -
    • +
    • TextStyle.Alignment = taLeftJustify: Text begins at X
    • TextStyle.Alignment = taCenter: Text center is in the center of the rectangle (horizontally)
    • TextStyle.Alignment = taRightJustify: Text ends at right edge of the rectangle
    • -
    • TextStyle.Layout = tlTop: Top of the text is at Y -
    • +
    • TextStyle.Layout = tlTop: Top of the text is at Y
    • TextStyle.Layout = tlCenter: Text center is in the center of the rectangle (vertically)
    • TextStyle.Layout = tlBottom: Text sits above the the bottom edge of the rectangle