From c06f4b42bb530f6c005ebd23aacc3a11e85a0eca Mon Sep 17 00:00:00 2001
From: dsiders
Date: Wed, 4 Jan 2023 20:00:04 +0000
Subject: [PATCH] Docs: LCL/controls. Adds admonitions for macOS Carbon
widgetset. Updates content for TMouse topics.
---
docs/xml/lcl/controls.xml | 58 +++++++++++++++++++++++++++++++++++----
1 file changed, 53 insertions(+), 5 deletions(-)
diff --git a/docs/xml/lcl/controls.xml b/docs/xml/lcl/controls.xml
index 6d34597ee9..70832eb757 100644
--- a/docs/xml/lcl/controls.xml
+++ b/docs/xml/lcl/controls.xml
@@ -17091,6 +17091,10 @@ resolving clDefault and ParentColor are also provided
as TControl.GetColorResolvingParent and
TControl.GetRGBColorResolvingParent.
+
+For the macOS Carbon widgetset, setting Color to clBtnFace causes the
+background for the control to become transparent.
+
@@ -17281,6 +17285,10 @@ Some Font attributes may be ignored in TControl descendants. It depends on
the drawing style for the specific control, and whether theme services are
enabled for text on the control.
+
+For the macOS Carbon widgetset, Font does not support use of the fsStrikeOut
+attribute in its Style property.
+
The PixelsPerInch property in Font is used to perform font size scaling in
methods like Scale96ToFont, ScaleFontTo96, ScaleScreenToFont, and
@@ -22065,7 +22073,7 @@ KeyDown is called from the KeyDownBeforeInterface method. It occurs after the Ap
See KeyUp for the actions performed when the key is released.
-
+
@@ -25545,6 +25553,11 @@ BorderStyle property must be applied in code for the handler.
OnPaint is signalled from the Paint method.
+
+For the macOS Carbon widgetset, drawing on the Canvas outside of the OnPaint
+event handler is not supported. Drawing directly to a screen device context is
+also not supported.
+
@@ -26588,13 +26601,48 @@ Mouse global unit variable.
-Handle for the control with mouse capture.
-
+
+Handle for the control with mouse capture.
+
+
+
+Capture is a HWND property which contains the handle for
+the control which has the mouse capture. Its value is read from the LCL
+interface (and ultimately the widgetset class instance).
+
+
+Setting a new value for the property causes either SetCapture or
+ReleaseCapture to be called in the LCL interface (or widgetset class
+instance). When set to 0 (the unassigned handle value), ReleaseCapture is
+called. Otherwise, SetCapture is called to assign the new handle value to the
+widget.
+
+
+For the macOS Carbon widgetset, release capture is not supported.
+
+
-The screen position for the mouse cursor.
-
+
+The screen position for the mouse cursor.
+
+
+
+CursorPos is a TPoint property which contains the screen
+coordinates where the mouse pointer is located. The X and Y members in the
+TPoint type contain the horizontal and vertical screen coordinates,
+respectively, and are read from and written to the widgetset class instance.
+
+
+When reading values in the property, the X and Y members may return 0 if the
+widgetset is unable to return a TPoint instance.
+
+
+For the macOS Carbon widgetset, changing the values in CursorPos does not
+triggering OnMoveMove events in a form or control.
+
+