Docs: LCL/graphics. Updates topics for TLCLHandle changes in 211d95da.

This commit is contained in:
dsiders 2023-07-09 21:01:33 +01:00
parent 5533223d81
commit bc4ca8375d

View File

@ -5629,16 +5629,17 @@ representing a specific image format.
</element> </element>
<element name="TGraphic.LoadFromResourceName"> <element name="TGraphic.LoadFromResourceName">
<short>Loads a resource with the specified name from the given handle.</short> <short>
Loads a resource with the specified name from the given handle.
</short>
<descr> <descr>
<p> <p>
<var>LoadFromResourceName</var> is a procedure used to load a resource with <var>LoadFromResourceName</var> is a procedure used to load a resource with
the name specified in <var>ResName</var> using the handle provided in the name specified in <var>ResName</var> using the handle provided in
<var>Instance</var>. LoadFromResourceName calls <var>GetResourceType</var> to <var>Instance</var>. LoadFromResourceName calls <var>GetResourceType</var> to
get the <var>Integer</var> resource type used in the class instance. No get the <var>Integer</var> resource type used in the class instance. No
actions are performed in the method when the <var>TResourceType</var> value actions are performed in the method when the <var>TResourceType</var> value is
is unassigned (contains unassigned (contains <b>Nil</b>).
<b>Nil</b>).
</p> </p>
<p> <p>
LoadFromResourceName creates a temporary <var>TResourceStream</var> that is LoadFromResourceName creates a temporary <var>TResourceStream</var> that is
@ -5653,7 +5654,17 @@ Use <var>LoadFromLazarusResource</var> to load a Lazarus resource from a
<b>.lrs</b> file with a give name. <b>.lrs</b> file with a give name.
</p> </p>
</descr> </descr>
<seealso/> <version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="TGraphic.GetResourceType"/>
<link id="TGraphic.LoadFromStream"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
<link id="#rtl.classes.TResourceStream">TResourceStream</link>
</seealso>
</element> </element>
<element name="TGraphic.LoadFromResourceName.Instance"> <element name="TGraphic.LoadFromResourceName.Instance">
<short>Handle where the content for the resource is stored.</short> <short>Handle where the content for the resource is stored.</short>
@ -5664,7 +5675,7 @@ Use <var>LoadFromLazarusResource</var> to load a Lazarus resource from a
<element name="TGraphic.LoadFromResourceID"> <element name="TGraphic.LoadFromResourceID">
<short> <short>
Load graphic data from a resource identified by the integer identifier Loads graphic data from a resource identified by the integer identifier
<var>ResID</var>. <var>ResID</var>.
</short> </short>
<descr> <descr>
@ -5700,7 +5711,19 @@ Use <var>LoadFromLazarusResource</var> to load a Lazarus resource from a
Raises an EResNotFound exception when the TResourceStream is initialized if Raises an EResNotFound exception when the TResourceStream is initialized if
the resource type or the resource handle is invalid. the resource type or the resource handle is invalid.
</errors> </errors>
<seealso/> <version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="TGraphic.GetResourceType"/>
<link id="TGraphic.LoadFromStream"/>
<link id="TGraphic.LoadFromResourceName"/>
<link id="TGraphic.LoadFromLazarusResource"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
<link id="#rtl.classes.TResourceStream">TResourceStream</link>
</seealso>
</element> </element>
<element name="TGraphic.LoadFromResourceID.Instance"> <element name="TGraphic.LoadFromResourceID.Instance">
<short>Handle where the content for the resource is stored.</short> <short>Handle where the content for the resource is stored.</short>
@ -6812,7 +6835,7 @@ Loads content from the specified resource into the Graphic property.
<var>LoadFromResourceName</var> is an overloaded method used to created a <var>LoadFromResourceName</var> is an overloaded method used to created a
<var>TGraphic</var> instance with the content from the specified resource <var>TGraphic</var> instance with the content from the specified resource
name. name.
<var>Instance</var> is the Handle with the resources examined in the method. <var>Instance</var> is the handle with the resources examined in the method.
<var>ResName</var> is the name of the resource loaded in the method. <var>ResName</var> is the name of the resource loaded in the method.
</p> </p>
<p> <p>
@ -6826,8 +6849,8 @@ instance.
<p> <p>
An overloaded variant includes an <var>AClass</var> argument with the class An overloaded variant includes an <var>AClass</var> argument with the class
type for the TGraphic descendant needed for a supported image format. The type for the TGraphic descendant needed for a supported image format. The
<var>LoadFromStream</var> in the class instance is called to load the named <var>LoadFromResourceName</var> method in the class instance is called to load
resource. the named resource.
</p> </p>
<p> <p>
The existing TGraphic instance in Graphic is freed and the new TGraphic The existing TGraphic instance in Graphic is freed and the new TGraphic
@ -6835,7 +6858,18 @@ instance is used as the member variable. The Changed method is called to
signal the OnChange event handler (when assigned). signal the OnChange event handler (when assigned).
</p> </p>
</descr> </descr>
<seealso/> <version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="TPicture.Changed"/>
<link id="TGraphic.OnChange"/>
<link id="TGraphic.LoadFromResourceName"/>
<link id="CreateGraphicFromResourceName"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element> </element>
<element name="TPicture.LoadFromResourceName.Instance"> <element name="TPicture.LoadFromResourceName.Instance">
<short>Handle with the resources examine in the method.</short> <short>Handle with the resources examine in the method.</short>
@ -6855,13 +6889,30 @@ signal the OnChange event handler (when assigned).
<short>File name with resource retrieved in the method.</short> <short>File name with resource retrieved in the method.</short>
</element> </element>
<!-- TODO. Needs description. -->
<element name="TPicture.LoadFromStream"> <element name="TPicture.LoadFromStream">
<short>Loads a supported image format from the specified stream.</short> <short>
Loads picture data in a supported image format from the specified stream.
</short>
<descr/> <descr/>
<seealso/> <seealso>
<link id="TGraphicClass"/>
<link id="TPortableNetworkGraphic"/>
<link id="TPixmap"/>
<link id="TBitmap"/>
<link id="TCursorImage"/>
<link id="TIcon"/>
<link id="TIcnsIcon"/>
<link id="TJpegImage"/>
<link id="TTiffImage"/>
<link id="TGIFImage"/>
<link id="TPortableAnyMapGraphic"/>
</seealso>
</element> </element>
<element name="TPicture.LoadFromStream.Stream"> <element name="TPicture.LoadFromStream.Stream">
<short/> <short>
Stream instance with the graphics format and data loaded in the method.
</short>
</element> </element>
<element name="TPicture.LoadFromStreamWithFileExt"> <element name="TPicture.LoadFromStreamWithFileExt">
@ -10871,6 +10922,7 @@ controls.
<element name="TSharedRasterImage.FHandle"/> <element name="TSharedRasterImage.FHandle"/>
<element name="TSharedRasterImage.FBitmapCanvas"/> <element name="TSharedRasterImage.FBitmapCanvas"/>
<element name="TSharedRasterImage.FSaveStream"/> <element name="TSharedRasterImage.FSaveStream"/>
<element name="TSharedRasterImage.FreeHandle"> <element name="TSharedRasterImage.FreeHandle">
<short>Frees the handle for the shared image.</short> <short>Frees the handle for the shared image.</short>
<descr> <descr>
@ -10896,14 +10948,13 @@ No actions are performed in the method when the handle is already set to
<element name="TSharedRasterImage.ReleaseHandle"> <element name="TSharedRasterImage.ReleaseHandle">
<short> <short>
<var>ReleaseHandle</var> - returns the identity of the handle that has just Returns the handle that has just been released.
been released.
</short> </short>
<descr> <descr>
<p> <p>
ReleaseHandle is a THandle function used to release a reference for the <var>ReleaseHandle</var> is a <var>TLCLHandle</var> function used to release a
handle in the class instance. The return value contains the value for the reference for the handle in the class instance. The return value contains the
handle on entry. value for the handle on entry.
</p> </p>
<p> <p>
ReleaseHandle sets the handle value to 0 to indicate that it is no longer ReleaseHandle sets the handle value to 0 to indicate that it is no longer
@ -10916,10 +10967,19 @@ like TCustomBitmap and TIcon, when their ReleaseHandle method is called to
free the handle for its shared image. free the handle for its shared image.
</p> </p>
</descr> </descr>
<seealso/> <version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the return value.
</version>
<seealso>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element> </element>
<element name="TSharedRasterImage.ReleaseHandle.Result"> <element name="TSharedRasterImage.ReleaseHandle.Result">
<short/> <short>
Value for the internal handle on entry to the method.
</short>
</element> </element>
<element name="TSharedRasterImage.IsEmpty"> <element name="TSharedRasterImage.IsEmpty">
@ -10956,7 +11016,8 @@ constructor on entry.
</element> </element>
<element name="TSharedRasterImage.CreateDefaultHandle"> <element name="TSharedRasterImage.CreateDefaultHandle">
<short>Not implemented in the current LCL version. <short>
Abstract virtual method not implemented in the class instance.
</short> </short>
<descr/> <descr/>
<seealso/> <seealso/>
@ -10983,15 +11044,20 @@ Calls the inherited destructor prior to exiting from the method.
</element> </element>
<element name="TSharedRasterImage.HandleAllocated"> <element name="TSharedRasterImage.HandleAllocated">
<short>Determines whether the Handle for the class has been allocated.</short> <short>
Determines whether the Handle for the class has been allocated.
</short>
<descr> <descr>
<p> <p>
Implements the abstract virtual method defined in <var>TSharedImage</var>. Implements the abstract virtual method defined in <var>TSharedImage</var>.
The return value is <b>True</b> when the Handle contains a non-zero value. The return value is <b>True</b> when the internal handle contains a non-zero
value.
</p> </p>
</descr> </descr>
<seealso> <seealso>
<link id="TSharedImage.HandleAllocated"/> <link id="TSharedImage.HandleAllocated"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso> </seealso>
</element> </element>
<element name="TSharedRasterImage.HandleAllocated.Result"> <element name="TSharedRasterImage.HandleAllocated.Result">
@ -11403,21 +11469,31 @@ for the class instance.
</element> </element>
<element name="TRasterImage.GetHandle"> <element name="TRasterImage.GetHandle">
<short>Gets the value for the Handle property.</short> <short>
Gets the value for the handle used in the image.
</short>
<descr> <descr>
<p> <p>
Calls HandleNeeded to ensure that valid handles exist for the image. Requires Calls HandleNeeded to ensure that valid handle(s) exist for the image. The
a valid handle in the shared raster image for the class instance. return value is the handle in the shared raster image for the class instance.
</p> </p>
</descr> </descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the return value.
</version>
<seealso> <seealso>
<link id="TRasterImage.HandleNeeded"/> <link id="TRasterImage.HandleNeeded"/>
<link id="TRasterImage.BitmapHandle"/> <link id="TRasterImage.BitmapHandle"/>
<link id="TRasterImage.MaskHandle"/> <link id="TRasterImage.MaskHandle"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso> </seealso>
</element> </element>
<element name="TRasterImage.GetHandle.Result"> <element name="TRasterImage.GetHandle.Result">
<short>Value for the property.</short> <short>
Handle for the raster image.
</short>
</element> </element>
<element name="TRasterImage.GetBitmapHandle"> <element name="TRasterImage.GetBitmapHandle">
@ -11902,10 +11978,12 @@ image data for a specific image format.
</element> </element>
<element name="TRasterImage.SetHandle"> <element name="TRasterImage.SetHandle">
<short>Sets the Handle used for the image.</short> <short>
Sets the handle used for the image.
</short>
<descr> <descr>
<p> <p>
<var>SetHandle</var> stores the specified <var>THandle</var> value as the <var>SetHandle</var> stores the specified <var>TLCLHandle</var> value as the
handle used for the image. The handle is actually the one used by the internal handle used for the image. The handle is actually the one used by the internal
<var>TSharedRasterImage</var> instance for the class. No actions are <var>TSharedRasterImage</var> instance for the class. No actions are
performed in the method when the value in AHandle is the same as the handle performed in the method when the value in AHandle is the same as the handle
@ -11918,6 +11996,10 @@ assigned to the internal shared image. When no other active update processes
are pending, the <var>Changed</var> method is called. are pending, the <var>Changed</var> method is called.
</p> </p>
</descr> </descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the AValue parameter.
</version>
<seealso> <seealso>
<link id="TRasterImage.Changed"/> <link id="TRasterImage.Changed"/>
<link id="TRasterImage.Canvas"/> <link id="TRasterImage.Canvas"/>
@ -11925,6 +12007,8 @@ are pending, the <var>Changed</var> method is called.
<link id="TRasterImage.EndUpdate"/> <link id="TRasterImage.EndUpdate"/>
<link id="TRasterImage.SetHandles"/> <link id="TRasterImage.SetHandles"/>
<link id="TSharedImage.Reference"/> <link id="TSharedImage.Reference"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso> </seealso>
</element> </element>
<element name="TRasterImage.SetHandle.AValue"> <element name="TRasterImage.SetHandle.AValue">
@ -13712,18 +13796,26 @@ before the value in RawImage is accessed. For example:
</element> </element>
<element name="TCustomBitmap.SetHandle"> <element name="TCustomBitmap.SetHandle">
<short>Re-implements the method from the ancestor class.</short> <short>
Re-implements the method from the ancestor class.
</short>
<descr> <descr>
<p> <p>
<var>SetHandle</var> is an overridden method in <var>TCustomBitmap</var>, and <var>SetHandle</var> is an overridden method in <var>TCustomBitmap</var>, and
re-implements the method from the <var>TRasterImage</var> ancestor class. re-implements the method from the <var>TRasterImage</var> ancestor class.
<var>AValue</var> contains the new handle assigned to the <var>AValue</var> contains the new handle instance assigned to the
<var>BitmapHandle</var> property. <var>BitmapHandle</var> property.
</p> </p>
</descr> </descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Value parameter.
</version>
<seealso> <seealso>
<link id="TRasterImage.BitmapHandle"/> <link id="TRasterImage.BitmapHandle"/>
<link id="TRasterImage.SetHandle"/> <link id="TRasterImage.SetHandle"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso> </seealso>
</element> </element>
<element name="TCustomBitmap.SetHandle.Value"> <element name="TCustomBitmap.SetHandle.Value">
@ -15236,15 +15328,24 @@ Frees the existing icon image and reloads it from the specified handle.
<descr> <descr>
<p> <p>
Calls FreeHandle to free the existing handle for the Icon in the widgetset Calls FreeHandle to free the existing handle for the Icon in the widgetset
class, and sets the Handle to the value specified in NewHandle. Gets icon class, and sets the handle to the value specified in NewHandle. Gets icon
information from the widgetset class and adds a new icon image to the list of information from the widgetset class and adds a new icon image to the list of
Images. Images.
</p> </p>
</descr> </descr>
<seealso/> <version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the NewHandle parameter.
</version>
<seealso>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element> </element>
<element name="TSharedIcon.UpdateFromHandle.NewHandle"> <element name="TSharedIcon.UpdateFromHandle.NewHandle">
<short/> <short>
TLCLHandle instance assigned as the handle for the shared icon.
</short>
</element> </element>
<element name="TSharedIcon.IsEmpty"> <element name="TSharedIcon.IsEmpty">
@ -16285,24 +16386,32 @@ Unshares an existing shared image handle and set the new value.
</short> </short>
<descr> <descr>
<p> <p>
SetHandle is a method used to set set the value for the shared image handle <var>SetHandle</var> is a method used to set set the value for the shared
in the icon instance. It ensures that an existing shared image handle frees image handle in the icon instance. It ensures that an existing shared image
both its canvas context and the data in its TSharedImage instance. handle frees both its canvas context and the data in its TSharedImage instance.
</p> </p>
<p> <p>
It calls UpdateHandle to set the new shared handle for the icon instance to It calls UpdateHandle to set the new shared handle for the icon instance to
AValue. Values in Current and Count are reset when the handle is changed. AValue. Values in Current and Count are reset when the handle is changed.
Current is set 0 when multiple images are used in the icon. It is set to -1 Current is set 0 when multiple images are used in the icon. It is set to -1
when a single image is present. Changed is called to update the value in when a single image is present. Changed is called to update the value in
Modified and signal the OnCHange event handler (when assigned). Modified and signal the OnChange event handler (when assigned).
</p> </p>
</descr> </descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the AValue parameter.
</version>
<seealso> <seealso>
<link id="TRasterImage.SetHandle"/> <link id="TRasterImage.SetHandle"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso> </seealso>
</element> </element>
<element name="TCustomIcon.SetHandle.AValue"> <element name="TCustomIcon.SetHandle.AValue">
<short>New value for the shared image handle in the icon.</short> <short>
New value for the shared image handle in the icon.
</short>
</element> </element>
<element name="TCustomIcon.UpdateHandle"> <element name="TCustomIcon.UpdateHandle">
@ -16808,9 +16917,8 @@ Loads the icon with the specified resource name from the instance handle.
<p> <p>
<var>LoadFromResourceName</var> is an overridden procedure used to load a <var>LoadFromResourceName</var> is an overridden procedure used to load a
resource with the name specified in <var>ResName</var> using the handle resource with the name specified in <var>ResName</var> using the handle
provided in provided in <var>Instance</var>. LoadFromResourceName re-implements the method
<var>Instance</var>. LoadFromResourceName re-implements the method defined in defined in the ancestor class, and does not call the inherited method.
the ancestor class, and does not call the inherited method.
</p> </p>
<p> <p>
LoadFromResourceName calls <var>GetResourceType</var> to get the LoadFromResourceName calls <var>GetResourceType</var> to get the
@ -16835,7 +16943,17 @@ Use <var>LoadFromLazarusResource</var> to load a Lazarus resource from a
<b>.lrs</b> file with a give name. <b>.lrs</b> file with a give name.
</p> </p>
</descr> </descr>
<seealso/> <version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="TCustomIcon.LoadFromResourceHandle"/>
<link id="TGraphic.GetResourceType"/>
<link id="#lcl.lcltype.TResourceType">TResourceType</link>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element> </element>
<element name="TCustomIcon.LoadFromResourceName.Instance"> <element name="TCustomIcon.LoadFromResourceName.Instance">
<short>Handle where the content for the resource is stored.</short> <short>Handle where the content for the resource is stored.</short>
@ -16856,7 +16974,7 @@ LoadFromResourceID re-implements the method defined in the ancestor class,
and does not call the inherited method. and does not call the inherited method.
</p> </p>
<p> <p>
<var>Instance</var> contains the Handle used to read the resource. <var>Instance</var> contains the handle used to read the resource.
<var>ResID</var> contains an Integer pointer to the resource identifier <var>ResID</var> contains an Integer pointer to the resource identifier
loaded in the method. loaded in the method.
</p> </p>
@ -16888,7 +17006,14 @@ Use <var>LoadFromLazarusResource</var> to load a Lazarus resource from a
Raises an EResNotFound exception if the resource handle for the specified ID Raises an EResNotFound exception if the resource handle for the specified ID
and type is not valid. and type is not valid.
</errors> </errors>
<seealso/> <version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element> </element>
<element name="TCustomIcon.LoadFromResourceID.Instance"> <element name="TCustomIcon.LoadFromResourceID.Instance">
<short>Handle where the content for the resource is stored.</short> <short>Handle where the content for the resource is stored.</short>
@ -16907,8 +17032,14 @@ LoadFromResourceHandle has an empty implementation in TCustomIcon. It is
re-implemented in TIcon descendant. re-implemented in TIcon descendant.
</p> </p>
</descr> </descr>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso> <seealso>
<link id="TIcon.LoadFromResourceHandle"/> <link id="TIcon.LoadFromResourceHandle"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso> </seealso>
</element> </element>
<element name="TCustomIcon.LoadFromResourceHandle.Instance"> <element name="TCustomIcon.LoadFromResourceHandle.Instance">
@ -17215,13 +17346,20 @@ image has already been assigned.
</seealso> </seealso>
</element> </element>
<!-- TODO: Needs description. -->
<element name="TIcon.LoadFromResourceHandle"> <element name="TIcon.LoadFromResourceHandle">
<short> <short>
Loads icon data from the specified instance and resource handles. Loads icon data from the specified instance and resource handles.
</short> </short>
<descr/> <descr/>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso> <seealso>
<link id="TCustomIcon.LoadFromResourceHandle"/> <link id="TCustomIcon.LoadFromResourceHandle"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso> </seealso>
</element> </element>
<element name="TIcon.LoadFromResourceHandle.Instance"> <element name="TIcon.LoadFromResourceHandle.Instance">
@ -17231,13 +17369,14 @@ Loads icon data from the specified instance and resource handles.
<short>Resource handle with the icon data loaded in the method.</short> <short>Resource handle with the icon data loaded in the method.</short>
</element> </element>
<!-- TODO: Needs description. -->
<element name="TIcon.ReleaseHandle"> <element name="TIcon.ReleaseHandle">
<short>Frees the Handle used for the Icon.</short> <short>Frees the Handle used for the Icon.</short>
<descr/> <descr/>
<seealso/> <seealso/>
</element> </element>
<element name="TIcon.ReleaseHandle.Result"> <element name="TIcon.ReleaseHandle.Result">
<short>HICON value removed from the Handle in the class instance.</short> <short>HICON value removed from the handle in the class instance.</short>
</element> </element>
<element name="TIcon.GetResourceType"> <element name="TIcon.GetResourceType">
@ -17267,8 +17406,8 @@ Handle used to access the image data for the icon.
<descr> <descr>
<p> <p>
<var>Handle</var> is a <var>HICON</var> property which contains the handle <var>Handle</var> is a <var>HICON</var> property which contains the handle
for the icon used to access image data for the icon. The property value is for the icon used to access its image data. The property value is provided by
provided by the inherited GetHandle method, and contains the Handle for its the inherited GetHandle method, and contains the handle for its
TSharedRasterImage instance. TSharedRasterImage instance.
</p> </p>
<p> <p>
@ -17737,18 +17876,29 @@ Returns <var>RT_GROUP_CURSOR</var> in <var>TCursorImage</var>.
<short/> <short/>
</element> </element>
<element link="#lcl.graphics.TCustomIcon.LoadFromResourceHandle" name="TCursorImage.LoadFromResourceHandle"> <!-- TODO: Needs content. -->
<element name="TCursorImage.LoadFromResourceHandle">
<short/> <short/>
<descr/> <descr/>
<version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso> <seealso>
<link id="TCustomIcon.LoadFromResourceHandle"/> <link id="TCustomIcon.LoadFromResourceHandle"/>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso> </seealso>
</element> </element>
<element name="TCursorImage.LoadFromResourceHandle.Instance"> <element name="TCursorImage.LoadFromResourceHandle.Instance">
<short/> <short>
Handle for the resource instance with the cursor image.
</short>
</element> </element>
<element name="TCursorImage.LoadFromResourceHandle.ResHandle"> <element name="TCursorImage.LoadFromResourceHandle.ResHandle">
<short/> <short>
Handle for the resource entry with the cursor image.
</short>
</element> </element>
<element link="#lcl.graphics.TGraphic.LazarusResourceTypeValid" name="TCursorImage.LazarusResourceTypeValid"> <element link="#lcl.graphics.TGraphic.LazarusResourceTypeValid" name="TCursorImage.LazarusResourceTypeValid">
@ -19965,13 +20115,21 @@ the Lazarus Resource (.LRS).
<short/> <short/>
</element> </element>
<!-- TODO: Needs content. -->
<element name="CreateGraphicFromResourceName"> <element name="CreateGraphicFromResourceName">
<short> <short>
Creates and loads a TGraphic instance using the specified instance handle and Creates and loads a TGraphic instance using the specified resource instance
resource name. handle and resource name.
</short> </short>
<descr/> <descr/>
<seealso/> <version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element> </element>
<element name="CreateGraphicFromResourceName.Result"> <element name="CreateGraphicFromResourceName.Result">
<short/> <short/>
@ -19995,7 +20153,14 @@ stored in a Lazarus resource. Typically used to load button glyphs and icons
displayed on the component palette in the Lazarus IDE. displayed on the component palette in the Lazarus IDE.
</p> </p>
</descr> </descr>
<seealso/> <version>
Modified in LCL version 4.0 to use the TLCLHandle type instead of the
deprecated THandle type in the Instance parameter.
</version>
<seealso>
<link id="#lcl.lcltype.TLCLHandle">LCLType.TLCLHandle</link>
<link id="#lcl.wsreferences.TLCLHandle">WSReferences.TLCLHandle</link>
</seealso>
</element> </element>
<element name="CreateBitmapFromResourceName.Result"> <element name="CreateBitmapFromResourceName.Result">
<short>Bitmap instance created and loaded in the routine.</short> <short>Bitmap instance created and loaded in the routine.</short>
@ -20008,6 +20173,8 @@ Handle for the Lazarus resource with the content for the bitmap.
<element name="CreateBitmapFromResourceName.ResName"> <element name="CreateBitmapFromResourceName.ResName">
<short>Name for the RT_BITMAP resource loaded in the routine.</short> <short>Name for the RT_BITMAP resource loaded in the routine.</short>
</element> </element>
<!-- TODO: Needs content. -->
<element name="CreateBitmapFromLazarusResource"> <element name="CreateBitmapFromLazarusResource">
<short>Creates and loads a Bitmap from a Lazarus Resource (.lrs) file. <short>Creates and loads a Bitmap from a Lazarus Resource (.lrs) file.
</short> </short>