Difference between revisions of "API Panel.LinkBar.SetEndGfx"
From Flowcode Help
Jump to navigationJump to search(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | |
− | + | |- | |
− | + | | width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]] | |
− | + | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetEndGfx''' | |
− | + | |- | |
− | + | | colspan="2" | Sets the graphic for the end point of the bar | |
− | === | + | |- |
− | [[ | + | |- |
− | : | + | | width="10%" align="center" | [[File:Fc9-h32-icon.png]] - HANDLE |
− | :: | + | | width="90%" | LinkBar |
− | + | |- | |
− | + | | colspan="2" | The handle to the bar to alter | |
− | + | |- | |
− | == | + | | width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG |
− | [[ | + | | width="90%" | Mode |
− | |||
− | |||
− | [[ | ||
− | |||
− | |||
− | |||
|- | |- | ||
− | + | | colspan="2" | The graphics mode to draw the bar end-point with | |
− | |||
|- | |- | ||
− | | | + | | width="10%" align="center" | [[File:Fc9-u32-icon.png]] - ULONG |
− | | | + | | width="90%" | RGBA |
|- | |- | ||
− | | | + | | colspan="2" | The red, green, blue value to colour the point with |
− | | | ||
|- | |- | ||
− | | | + | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT |
− | | | + | | width="90%" | Width |
|- | |- | ||
− | | | + | | colspan="2" | The width to use for 3D and arrow modes |
− | | | ||
|- | |- | ||
− | | | + | | width="10%" align="center" | [[File:Fc9-f32-icon.png]] - FLOAT |
− | | | + | | width="90%" | Height |
|- | |- | ||
− | | | + | | colspan="2" | The height to use for 3D and arrow modes |
− | | | ||
|- | |- | ||
− | | | + | | width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - NONE |
− | | | + | | width="90%" style="border-top: 2px solid #000;" | ''Return'' |
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 74: | Line 51: | ||
===Calling in a calculation=== | ===Calling in a calculation=== | ||
* Add to a calculation icon: <pre class="brush:[cpp]">::Panel.LinkBar.SetEndGfx(linkbar, ::Panel.LinkBar.Cap_None, rgba, width, height)</pre> | * Add to a calculation icon: <pre class="brush:[cpp]">::Panel.LinkBar.SetEndGfx(linkbar, ::Panel.LinkBar.Cap_None, rgba, width, height)</pre> | ||
− | |||
− |
Latest revision as of 11:54, 16 January 2023
Detailed description
This sets the graphics mode for the end point of the bar. The default for the end is to have no graphics.
The Mode is the type of link to draw, and if a graphic is to be drawn this will be affected by Width and Height. Width is always assumed to be positive and its sign is ignored, but Height may be negative to invert the arrow or graphic specified.
The RGBA is a true-colour red, green, blue value. This is 255 (0xFF) for red, 0xFF00 for green and 0xFF0000 for blue.
Examples
Calling in a calculation
- Add to a calculation icon:
::Panel.LinkBar.SetEndGfx(linkbar, ::Panel.LinkBar.Cap_None, rgba, width, height)