Type: Integer
Availability: Read or write at any time
The parentRightOffset property of the Control class contains the pixel offset of the right edge of a control from the right side the client area of its parent. By default, the value of this property is automatically calculated.
This value is used primarily when the parentAspect property requires the right offset. The value is stored persistently at design time so that the correct right position of the parentAspect property can be restored when the form is loaded and is therefore unaffected by whether skins are now in use, the application three-dimensional border default values have been changed, subclassed forms of different sizes in cases where the parent of the control is also affected by the resize, and so on.
You can set the parentRightOffset property value for any control and it is effectively the same as setting the left position of a control to the pixel position (that is, the value of the parent’s clientHeight property less the value of the parentRightOffset property and the control height in pixels).
Changing the left position of the control updates the value of the parentRightOffset property and setting the value of the parentRightOffset property updates the left position value.
When a control is added by using the addControl method of the Form class, the values of the parentBottomOffset and parentRightOffset property values are calculated initially from the resulting size and position of the control within its parent. Setting these values before calling the addControl method has no effect.
The parentBottomOffset and parentRightOffset property values only take effect when a control is created if the control was saved using the painter or if the loadControl method of the Form class is used (or if dynamically changed via logic).