From f377516bef72660bfa39a187407a540f4aef4009 Mon Sep 17 00:00:00 2001
From: dsiders
TFontData is the type used to implement the FontData property -in TFont. +
+TFontData is the type used to implement the FontData property in +TFont.
-Quality is a -TFontQuality member which contains an enumeration value which -indicates the output quality for the font. The output quality determines how -carefully font attributes are applied to output using the font. +Quality is a TFontQuality member which contains an +enumeration value which indicates the output quality for the font. The output +quality determines how carefully font attributes are applied to output using +the font.
-See TFontQuality for more information about the enumeration -values and their meanings. +
+See TFontQuality for more information about the enumeration values +and their meanings.
When set to True, the first Ampersand (&) +
+When set to True, the first Ampersand (&)
character on a line is drawn as the decoration used for an accelerator key.
The character after the Ampersand contains the key for the accelerator. When
True, double Ampersand (&&) characters are required to
@@ -791,7 +793,8 @@ draw an Ampersand character in the text.
When set to True, a line of text that is larger than the available
+
+When set to True, a line of text that is larger than the available
width in the rectangle is word-wrapped into multiple lines at word boundaries.
If a line of text is too long to fit between left and right boundaries for
+
+If a line of text is too long to fit between left and right boundaries for
the text rectangle, the text is shortened and an Ellipsis (...)
is added to the end of the text value. Preference is given to
WordBreak when set.
@@ -1143,9 +1147,10 @@ horizontal and vertical cross-hatch.
Alias for the TFPBrushStyle.bsDiagCross enumeration value in the FCL.
-Fills a shape with a pattern consisting of equidistant lines drawn as a 45
-degree cross-hatch.
+
+Alias for the TFPBrushStyle.bsDiagCross enumeration value in the FCL. Fills a
+shape with a pattern consisting of equidistant lines drawn as a 45 degree
+cross-hatch.
Not used in the current LCL implementation. Appears to have been replaced
-with the LazRegionFillMode type in
+Not used in the current LCL implementation. Replaced with the
+LazRegionFillMode type in
-TCopyMode is an alias for the LongInt type. TCopyMode
-is the type used to implement the CopyMode property in
+TCopyMode is an alias for the LongInt type. TCopyMode is
+the type used to implement the CopyMode property in
TCanvas. Normally contains a value defined in the copy mode
constants:
+TProgressEvent is a alias for the TFPImgProgressEvent type in the
+FCL. It specifies an event handler used to perform progress notifications for
+computationally intensive (slow) operations such as loading, storing, or
+transforming graphic image data.
+
+The object procedure type (defined in fpimage.pp) includes the following
+parameters:
+
+TProgressEvent is the type used to implement the OnProgress property in
+TGraphic and TPicture.
+
-The color of the background of a widget, for example a TEdit. This is usually
+The color of the background for a widget, for example a TEdit. This is usually
white. Don't confuse this with the background of a window, or form, which is
given by clForm.
+
+
+
SetFlags is called when a new value is assigned to the Style +
+SetFlags is called when a new value is assigned to the Style property differs from the existing value.
Operating system Handle for the Font. +
+Operating system Handle for the Font.
-IsMonoSpace is a read-only -Boolean property which indicates if the font is a monospaced font -with a fixed character width. The FontIsMonoSpace routine from the -LCL interface is called to get the property value, and uses the font handle -in Reference to retrieve the font data. +IsMonoSpace is a read-only Boolean property which +indicates if the font is a monospaced font with a fixed character width. The +FontIsMonoSpace routine from the LCL interface is called to get the +property value, and uses the font handle in Reference to retrieve +the font data.
-SetDefault is a procedure used to set properties in the font to -the values used in the -DefFontData variable. SetDefault calls -BeginUpdate to start an update process, and sets the values for -the following properties: +SetDefault is a procedure used to set properties in the font to the +values used in the DefFontData variable. SetDefault calls +BeginUpdate to start an update process, and sets the values for the +following properties:
Color is set to clDefault when the UseCLDefault compiler -directive is defined. Otherwise, the value clWindowText is used in -the property. +
+Color is set to clDefault when the UseCLDefault compiler directive +is defined. Otherwise, the value clWindowText is used in the +property.
EndUpdate is called to finish the update process prior to exiting @@ -3029,6 +3147,7 @@ from the method.
TPenStyle is an alias for the TFPPenStyle type in the FCL. +
+TPenStyle is an alias for the TFPPenStyle type in the FCL.
TPenEndCap is an enumerated typed with values representing geometric -shapes used as end caps for a pen. End caps are applied to the starting and -ending points in a line segment. +
+TPenEndCap is an enumerated typed with values representing geometric shapes +used as end caps for a pen. End caps are applied to the starting and ending +points in a line segment.
-TPenEndCap is the type used to implement the EndCap property in TPen. +
+TPenEndCap is the type used to implement the EndCap property in TPen.
-TPenPattern is an array type used to store the sequence of -LongWord values that make up the pattern. TPenPattern is +TPenPattern is an array type used to store the sequence of +LongWord values that make up the pen pattern. TPenPattern is essentially a user-defined pen style.
TPenPattern is the type used to implement the Pattern property @@ -3393,6 +3526,7 @@ in TPen.
DoAllocateResources is an overridden method used to allocate resources for the class instance. DoAllocateResources calls the inherited -method , and calls GetReference to initialize the -Reference property used in the class instance. +method , and calls GetReference to initialize the Reference +property used in the class instance.
Overridden. +
+Overridden. Calls FreeReference. -Calls the inherited method. +Calls the inherited method prior to exiting from the method.
Defined for FCL versions where the EndCap property is implemented. +
+Defined for FCL versions where the EndCap property is implemented.
-SetJoinStyle - specifies the style to be used by the geometric pen -when lines join (at corners etc). +SetJoinStyle specifies the style used on a geometric pen when lines +join (at corners etc).
Overridden write access specifier. +
+Overridden write access specifier for the Style property.
Overridden write access specifier. +
+Overridden write access specifier for the Width property.
Create is the overridden constructor for TPen. It calls the -inherited -Create method, and sets the default values for properties -including: +inherited Create method, and sets the default values for properties including:
-Destroy is the destructor for -TPen. It frees resource in Reference and calls the inherited -Destroy method. +Destroy is the destructor for TPen. It frees resources +in Reference and calls the inherited Destroy method.
Assign is an overridden method used to copy property values from -the persistent object in -Source to the current class instance. +the persistent object in Source to the current class instance.
Source is the TPersistent class instance with the property
values copied in the method. If Source is a TPen instance, the
@@ -3748,56 +3904,58 @@ Otherwise, the inherited method is called.
-Handle is a
-HPEN property with the handle allocated for the pen by the
-operating system or widgetset. Setting a new value for the property causes
-the pen
-Reference to be re-created. The
-Changed method is called to signal the
-OnChange event handler (when assigned).
+Handle is a HPEN property with the handle allocated for
+the pen by the operating system or widgetset. Setting a new value for the
+property causes the pen Reference to be re-created. The
+Changed method is called to signal the OnChange event
+handler (when assigned).
-Reference is a read-only
-TWSPenReference property which provides a reference to the class
-allocated for the pen by a widgetset class. Use
-Reference to access the handle allocated for the pen resource.
+Reference is a read-only TWSPenReference property which
+provides a reference to the class allocated for the pen by a widgetset class.
+Use Reference to access the handle allocated for the pen resource.
-GetPattern is a
-TPenPattern function used to get Pattern for the pen. Use
-SetPattern to assign the Pattern used for the pen.
+GetPattern is a TPenPattern function used to get Pattern
+for the pen. Use SetPattern to assign the Pattern used for the pen.
-Color is a -TColor property which contains the color used by the pen to draw -on a canvas. The default value for the property is +Color is a TColor property which contains the color used +by the pen to draw on a canvas. The default value for the property is clBlack.
Cosmetic is a Boolean property which indicates whether -the pen is a Cosmetic one. When set to False, it is a Geometric Pen. +the pen is a Cosmetic one. When set to False, it is a Geometric pen.
-A Pen can be either Cosmetic or Geometric. A cosmetic pen is always 1 pixel +A pen can be either Cosmetic or Geometric. A cosmetic pen is always 1 pixel wide, while a geometric pen can have any width. The width of a geometric pen is defined in world units and thus depends on transforms (scaling, rotation, shear, reflection) applied to a canvas. Operations using a cosmetic pen are @@ -3845,38 +4006,45 @@ be re-created. The Changed method is called to signal the
The end cap can be Round, Square or Flat. When end caps are round, the -last points are drawn round. When end caps are square, the last points are -drawn square. When end caps are flat, the last points are not drawn at all. +
+The end cap can be Round, Square or Flat. When end caps are round, the last +points are drawn with a rounded shape. When end caps are square, the last +points are drawn with a square aspect. When end caps are flat, the last points +are not drawn at all.
The join style can be: Round, Bevel or Miter. When style is Round, then -line joins are round. When style is Bevel, then line joins are beveled. When -style is Miter, then line joins are mitered. +
+The join style can be: Round, Bevel or Miter. When style is Round, then +line joins use a rounded shape. When style is Bevel, then line joins are +beveled at their intersection. When style is Miter, then line joins are +mitered at their intersection.
-Mode is a TFPPenMode property which contains the pen mode used in the class -instance. A pen mode indicates the raster operation performed to combine the -pen color with existing pixels in the destination bitmap. Mode can contain -any of the values: +Mode is a TFPPenMode property which contains the pen +mode used in the class instance. A pen mode indicates the raster operation +performed to combine the pen color with existing pixels in the destination +bitmap. Mode can contain any of the values:
-Style is a TPenStyle property with the style used to draw lines with the Pen, -and can contain one of the following values: +Style is a TPenStyle property with the style used to draw lines with the Pen. +It can contain one of the following constant values:
psDash, psDot, psDashDot, and psDashDotDot are drawn using the corresponding TPenPattern for the Style. On the Windows platform, these styles are not -available if the Width is any value other than 1. +available if Width has any value other than 1.
psInsideFrame uses a solid drawing style, and a Color dithered to one of the @@ -3984,13 +4154,19 @@ operation is not needed.
The default value for the property is psSolid. Setting a new value -for the property cause the Changed method to be called to signal the OnChange -event handler (when assigned). +for the property causes the handle in Reference to be freed. The Changed +method is called to signal the OnChange event handler (when assigned).
Width is an Integer property which contains the width @@ -4010,31 +4186,85 @@ using it as a cosmetic pen.
TBrushStyle is an alias for TFPBrushStyle from the FCL. Brush style -constants are defined in the LCL, and includes: +
+TBrushStyle is an alias for the TFPBrushStyle type from the FCL. Brush style +constants defined in the LCL include: +
++The constant values are assigned to the Style property in TBrush.
-+DoCopyProps is an overridden method in TBrush used to +copy properties from the brush instance in From to the current +brush instance. If From is derived from TBrush, it ensures that the Handle in +Reference is freed prior to copying values and calls the Changed method when +the operation has been completed. +
++DoCopyProps calls the inherited method to copy values for the Style, Image, +and Color properties. +
++DoCopyProps is called from the CopyBrush method in the ancestor class. +
+An overloaded variant provides both TColor and -TFPColor values. It is used to set the color by calling the -SetFPColor method in the ancestor class. No actions are performed -in the method when the values in Color and FPColor have -not been changed and the brush Style contains bsClear. +
+An overloaded variant provides both TColor and TFPColor +values. It is used to set the color by calling the SetFPColor +method in the ancestor class. No actions are performed in the method when the +values in Color and FPColor have not been changed and +the brush Style contains bsClear.
-Frees the brush handle in the References property, and sets the +
+Frees the brush handle in the References property, and sets the value in Bitmap to Nil. Calls the inherited -SetStyle method when Style is bsClear. Calls Changed to +SetStyle method when Style is bsClear. Calls Changed to signal the OnChange event handler (when assigned).
-SetFPColor is an overridden method used to set the color using the -TFPColor value in -AValue. Calls -FPColorToTColor to convert AValue to a -TColor value, and applies it to the -Color property. +SetFPColor is an overridden method used to set the color using the +TFPColor value in AValue. Calls FPColorToTColor to +convert AValue to a TColor value, and applies it to the Color property.
@@ -4239,6 +4499,7 @@ signal the OnChange event handler (when assigned).
Create sets the value in DelayAllocate to True to defer
+
+Create sets the value in DelayAllocate to True to defer
resource allocation until the brush is used. The internal counter used to
track updates is reset.
Destroy is the overridden destructor for the class instance. -Destroy frees the handle for the brush in the -Reference property, and calls the inherited destructor prior to -exiting from the method. +Destroy frees the handle for the brush in the Reference property, +and calls the inherited destructor prior to exiting from the method.
-Bitmap is a -TCustomBitmap property which contains the pattern used to draw the -brush, and is generally used to fill shapes or rectangular areas. +Bitmap is a TCustomBitmap property which contains the +pattern used to draw the brush, and is generally used to fill shapes or +rectangular areas.
When assigned, the Bitmap image is used to draw the brush pattern instead of @@ -4312,26 +4576,33 @@ Handle for the brush is freed, and the Changed method is called to signal the OnChange event handler (when assigned).
-The image in Bitmap will be discarded when a new value is assigned to the -Style property. +The image in Bitmap is discarded when a new value is assigned to the Style +property.
-Handle is a -HBRUSH property which contains the handle allocated for the brush. +Handle is a HBRUSH property which contains the handle +allocated for the brush.
-@@ -4380,14 +4653,14 @@ property.
-Style is a -TFPBrushStyle property which indicates the pattern drawn using the -brush. Style contains one of the enumeration values defined in the FCL. The -enumeration values are introduced as constants in the LCL, and includes: +Style is a TFPBrushStyle property which indicates the +pattern drawn using the brush. Style contains one of the enumeration values +defined in the FCL. The enumeration values are introduced as constants in the LCL, and include:
Setting a new value in Style causes the brush Handle in Reference to be -freed. The image in Bitmap is also discarded by setting the member to -Nil. The Changed method is called to signal the -OnChange event handler (when assigned). +
+Setting a new value in Style causes the brush Handle in Reference to be freed. +The image in Bitmap is also discarded by setting the member to Nil. The +Changed method is called to signal the OnChange event +handler (when assigned).
-The default value for the property is bsSolid. The value in -Style is automatically set to bsSolid when a value is assigned to -the Bitmap property. +
+The default value for the property is bsSolid. The value in Style +is automatically set to bsSolid when a value is assigned to the +Bitmap property.
-TRegion is a -TGraphicsObject descendant which represents shaped areas that can -be drawn, filled, or examined on a screen or canvas. The shaped areas can be -one or more rectangles, and can overlap. +TRegion is a TGraphicsObject descendant which represents +shaped areas that can be drawn, filled, or examined on a screen or canvas. The +shaped areas can be one or more rectangles, and can overlap.
-Use AddRectangle to create and combine a new rectangular area -with the existing areas in the region. Each region has a Handle -which identifies the construct. It is modified when a new rectangular area is -added to the region. +
+Use AddRectangle to create and combine a new rectangular area with +the existing areas in the region. Each region has a Handle which +identifies the construct. It is modified when a new rectangular area is added +to the region.
-TRegion is the type used to implement the Region propriety in +
+TRegion is the type used to implement the Region propriety in TCanvas, and passed as an argument to the SetShape method in TWinControl.
-+AddOperation is an empty implementation in the current LCL version. +
+ClearSubRegions is an empty implementation in the current LCL version. +
Gets a handle for the rectangular defined by the opposing corners with the -X1, Y1, X2, and Y2 coordinates. The new region handle is OR-ed with the -existing handle for the region. +
+Gets a handle for the rectangular defined by the opposing corners with the X1, +Y1, X2, and Y2 coordinates. The new region handle is OR-ed with the existing +handle for the region.
-Calls ReferenceNeeded to ensure that the handle for the region has been +
+Calls ReferenceNeeded to ensure that the handle for the region has been allocated.
-Discards the new region handle by calling DeleteObject. +
+Discards the new region handle by calling DeleteObject.
@@ -4878,8 +5193,10 @@ graphic is drawn on the Canvas.
@@ -4899,6 +5216,7 @@ specific image format.
+Used by the TFiler instance for the class during LCL component streaming. +
++Assign is an overridden method in TGraphic. It ensures +that the inherited Assign method is not called if the object instance in +ASource has not been assigned. If ASource contains Nil, the +Clear method is called. If ASource has an assigned value, the inherited Assign +method is called to copy property values from ASource into the current class +instance. +
++Create is a virtual method in TGraphic; it is recommended that a +constructor be supplied to override this method in descendent classes. +
LoadFromStream is an abstract virtual method used to load graphic -data from the stream instance specified in -Stream. It must be implemented in a descendent class to provide -support for reading a specific image format from the stream. +data from the stream instance specified in Stream. It must be +implemented in a descendent class to provide support for reading a specific +image format from the stream.
LoadFromStream is used in the implementation of methods like:
@@ -5225,6 +5578,7 @@ LoadFromStream is used in the implementation of methods like:
SaveToFile is a procedure used to write the graphic data in the
-class instance to the specified file name.
-Filename is the fully-qualified file name on the local file system
-where the data is stored, and may contain UTF-8-encoded characters.
+class instance to the specified file name. Filename is the
+fully-qualified file name on the local file system where the data is stored,
+and may contain UTF-8-encoded characters.
SaveToFile creates a temporary TFileStreamUTF8 instance that is
@@ -5391,6 +5752,7 @@ used to write graphic data by calling the SaveToStream method.
OnProgress is a TProgressEvent property with the event
handler signalled to track the progress of operations in the class instance.
-See the Progress topic for more detailed
-information.
+See the TProgressEvent topic for more
+detailed information.
Applications must assign an object procedure to the event handler to respond
to progress notification messages. The Sender argument contains
-the object with triggered the notification.
+the object which triggered the notification.
-See Progress for more details on progress -monitoring. +See TProgressEvent for more details on progress monitoring.
+OnProgress is a TProgressEvent property with the event +handler signalled to track the progress of operations in the class instance. +See the TProgressEvent topic for more +detailed information. +
++Applications must assign an object procedure to the event handler to respond +to progress notification messages. The Sender argument contains +the object which triggered the notification. +
+@@ -10191,6 +10731,7 @@ drawing operation is completed.
-Create is the overloaded constructor for the class instance. +Create is the overloaded constructor for the class instance. It +specifies a Raw image to be used, and calls the inherited Create method. Variants are provided with parameters which specify the dimensions and/or -content for the icon image. The variant with the TIconInfo -argument is used to create a new icon image when a handle is assigned in +content for the icon image. The variant with the TIconInfo argument +is used to create a new icon image when a handle is assigned in TSharedIcon.