Jump to content

API Panel.LinkBar.SetEndGfx

From Flowcode Help
Revision as of 14:08, 13 July 2026 by SteveT (talk | contribs) (Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"")
SetEndGfx
Sets the graphic for the end point of the bar 
- HANDLE LinkBar
The handle to the bar to alter 
- ULONG Mode
The graphics mode to draw the bar end-point with 
- ULONG RGBA
The red, green, blue value to colour the point with 
- FLOAT Width
The width to use for 3D and arrow modes 
- FLOAT Height
The height to use for 3D and arrow modes 
- NONE Return


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)