Jump to content

API Panel.Position.Set: Difference between revisions

From Flowcode Help
No edit summary
No edit summary
Line 32: Line 32:
* Declare a variable 'result' of type BOOL
* Declare a variable 'result' of type BOOL
* Add to a calculation icon: <pre class="brush:[cpp]">result = ::Panel.Position.Set(dest, source)</pre>
* Add to a calculation icon: <pre class="brush:[cpp]">result = ::Panel.Position.Set(dest, source)</pre>
''<span style="color:red;">No additional examples</span>''

Revision as of 11:54, 16 January 2023

Set
Sets an objects position based on a component or pre-defined position 
- HANDLE Dest
The position or component to update 
- HANDLE Source
The position or component to read from 
- BOOL Return


Detailed description

This copies the entire contents of a position from Source to Dest. Either handle may be a position or component.

The position will be converted from the sources coordinate-space into the destination space when it is assigned. This means one unit in the Source space is equivalent to one unit in the Dest space, regardless of the scale of owning components.


Examples

Calling in a calculation

  • Declare a variable 'result' of type BOOL
  • Add to a calculation icon:
    result = ::Panel.Position.Set(dest, source)