API Panel.Position.GetBox: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 32: | Line 32: | ||
* Declare a variable 'result' of type HANDLE | * Declare a variable 'result' of type HANDLE | ||
* Add to a calculation icon: <pre class="brush:[cpp]">result = ::Panel.Position.GetBox(handle)</pre> | * Add to a calculation icon: <pre class="brush:[cpp]">result = ::Panel.Position.GetBox(handle)</pre> | ||
Revision as of 11:54, 16 January 2023
| GetBox | |
| Gets a handle to an object representing the components bounding box position | |
| Handle | |
| The position or component to read from | |
| Return | |
Detailed description
This call gets the objects bounding box position. This can be thought of as the objects size rather than its raw scale value.
The difference between scale and size only applies to objects with child objects, such as groups or compiled components.
Examples
Calling in a calculation
- Declare a variable 'result' of type HANDLE
- Add to a calculation icon:
result = ::Panel.Position.GetBox(handle)