VisualNEO Win Plugin Manual

neoShape - Antialiased Vector Shapes

Plugin ID:com.visualneo.neoshape
Suite:VisualNEO Essentials (Free)
Publisher:SinLios
Category:Graphics / Visual Objects
Control:neo-shape

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

PropertyTypeDefaultDescription
captionstringInteractive geometryCentered Unicode text.
shapestringrounded-rectangleShape rendered by the control.
cornerRadiusinteger18Rounded-corner radius in pixels.

Actions

neoShapeSetShape

Changes the shape of a control.

TEXT
neoShapeSetShape "Shape1" "star"

neoShapeSetCaption

Changes the centered Unicode caption.

TEXT
neoShapeSetCaption "Shape1" "Ready"

neoShapeSetFillColor

Overrides the Style Palette fill with a #RRGGBB color.

TEXT
neoShapeSetFillColor "Shape1" "#0078D4"

neoShapeSetLineColor

Overrides the outline with a #RRGGBB color.

TEXT
neoShapeSetLineColor "Shape1" "#FFFFFF"

neoShapeSetLineWidth

Sets the outline width from 0 to 32 pixels. Use 0 for no outline.

TEXT
neoShapeSetLineWidth "Shape1" "3"

neoShapeResetStyle

Clears action overrides and restores the current VisualNEO Style Palette.

TEXT
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

TEXT
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.