Overview
neoShape adds interactive vector shapes to VisualNEO Win publications. Shapes are rendered with GDI+ antialiasing in both the VisualNEO editor and the compiled application. The control inherits fill, outline, line width, font, and text color from the VisualNEO Style Palette.
Supported shapes are rectangle, rounded-rectangle, ellipse, triangle, diamond, hexagon, and star.
Properties
| Property | Type | Default | Description |
|---|---|---|---|
caption | string | Interactive geometry | Centered Unicode text. |
shape | string | rounded-rectangle | Shape rendered by the control. |
cornerRadius | integer | 18 | Rounded-corner radius in pixels. |
Actions
neoShapeSetShape
Changes the shape of a control.
neoShapeSetShape "Shape1" "star"
neoShapeSetCaption
Changes the centered Unicode caption.
neoShapeSetCaption "Shape1" "Ready"
neoShapeSetFillColor
Overrides the Style Palette fill with a #RRGGBB color.
neoShapeSetFillColor "Shape1" "#0078D4"
neoShapeSetLineColor
Overrides the outline with a #RRGGBB color.
neoShapeSetLineColor "Shape1" "#FFFFFF"
neoShapeSetLineWidth
Sets the outline width from 0 to 32 pixels. Use 0 for no outline.
neoShapeSetLineWidth "Shape1" "3"
neoShapeResetStyle
Clears action overrides and restores the current VisualNEO Style Palette.
neoShapeResetStyle "Shape1"
Events
The control provides Click, Mouse Enter, and Mouse Exit. VisualNEO sets the standard modern-control event variables before running the event script:
[ModernEventObject][ModernEventName][ModernEventJSON][ModernEventPlugin]
The JSON payload contains x, y, shape, caption, and, for clicks, button.
Result Variables
Actions return these variables:
[neoShapeLastObject][neoShapeLastAction][neoShapeLastValue]
Example
neoShapeSetShape "Shape1" "star"
neoShapeSetCaption "Shape1" "Unicode: Espanol / Russian / Japanese"
neoShapeSetFillColor "Shape1" "#FF8800"
neoShapeSetLineColor "Shape1" "#17324D"
neoShapeSetLineWidth "Shape1" "4"
Deployment
Install the com.visualneo.neoshape.vnplugin folder with the VisualNEO Modern Plugin Manager. The Win32 module is bin/win32-x86/neoShape.dll.