Hide Comments
Hide Comments

Comments (0)

Provides a panel for generating design-time or run-time VCL objects for a SVG. Unlike the TRSSVGImage component, the TRSSVGPanel component does not draw the SVG using canvas operations. Rather, it generates the VCL controls to draw the SVG.

The TRSSVGPanel for the VCL is much more limited in capabilities and compatibility with the SVG specification than the FMX version. The limitations include no clipping, rotated and scaled controls may be clipped, and flickering. It is recommended to use the TRSSVGPanel only on tested SVGs to prevent errors.

Namespace: RSSVGCtrls

expandingInheritance Hierarchy

TPanel
  RSSVGCtrls.TRSSVGPanel
 

expandingSyntax

Delphi

type
  TRSSVGPanel = class(TPanel, ISVGViewer)
  end;
 

expandingConstructors

 

Name

Description

public constructor

Create(TComponent)

Initializes a new instance of the TRSSVGPanel class.

public destructor

Destroy

Represents the destructor of the TRSSVGPanel class.

Top

expandingProperties

 

Name

Description

published property

Align

Represents property Align.

published property

Anchors

Represents property Anchors.

published property

AutoSize

Represents property AutoSize.

published property

Constraints

Represents property Constraints.

published property

DragCursor

Represents property DragCursor.

published property

DragKind

Represents property DragKind.

published property

DragMode

Represents property DragMode.

published property

Enabled

Represents property Enabled.

published property

OnClick

Represents property OnClick.

published property

OnContextPopup

Represents property OnContextPopup.

published property

OnDblClick

Represents property OnDblClick.

published property

OnDragDrop

Represents property OnDragDrop.

published property

OnDragOver

Represents property OnDragOver.

published property

OnEndDock

Represents property OnEndDock.

published property

OnEndDrag

Represents property OnEndDrag.

published property

OnGesture

Represents property OnGesture.

published property

OnMouseActivate

Represents property OnMouseActivate.

published property

OnMouseDown

Represents property OnMouseDown.

published property

OnMouseEnter

Represents property OnMouseEnter.

published property

OnMouseLeave

Represents property OnMouseLeave.

published property

OnMouseMove

Represents property OnMouseMove.

published property

OnMouseUp

Represents property OnMouseUp.

published property

OnStartDock

Represents property OnStartDock.

published property

OnStartDrag

Represents property OnStartDrag.

published property

ParentShowHint

Represents property ParentShowHint.

published property

PopupMenu

Represents property PopupMenu.

published property

ScaleOriginal

Specifies the scale factor for drawing the SVG.

Use the ScaleOriginal property to scale the SVG larger or smaller within the TRSSVGImage component. This is useful for controlling the tiling the SVG or zooming in or out of the SVG

published property

ShowHint

Represents property ShowHint.

published property

SVGDocument

Specifies the SVG document to display in the control. The SVGDocument and SVGRootID properties control exactly which SVG document and which branch of the SVG document hierarchy to display.

protected property

SVGRoot

Represents property SVGRoot.

published property

SVGRootID

Specifies which node of the SVGDocument to draw as the top- level SVG document.

Use the SVGRootID property to display only a portion of the SVGDocument .

published property

Touch

Represents property Touch.

published property

Visible

Represents property Visible.

published property

WrapMode

Specifies whether and how to resize, replicate, and position the SVG image for rendering the TRSSVGImage surface.

The WrapMode property should be one of the constants defined in the TSVGImageWrapMode type:

iwOriginal-- displays the SVG with its original dimensions.

iwFit-- best fit (keeping SVG proportions--the ratio between the width and height) for the TRSSVGImage rectangle. Default.

iwStretch--stretches the SVG to fill the entire rectangle of this TRSSVGImage component.

iwTile--tiles the TRSSVGImage image to cover the entire rectangle of the TRSSVGImage component.

iwCenter-- center the SVG inside the TRSSVGImage component
 

Top

expandingMethods

 

Name

Description

public method

ClearSVGDocument

Clears the SVGDocument property without deleting the SVG elements

protected method

DoCallback(TSVGElement,TControl)

Represents method DoCallback(TSVGElement,TControl).

protected method

DoSVGChanged(TObject)

Represents method DoSVGChanged(TObject).

public method

FindControl(String)

Returns the child (or grandchild, or grandchild, etc) control of the panel that has a SVGID property equal to the parameter

public method

GenerateControls

Regenerates the VCL controls for the panel

protected method

GetSVGRoot

Represents method GetSVGRoot.

protected method

Loaded

Represents method Loaded.

protected method

Notification(TComponent,TOperation)

Represents method Notification(TComponent,TOperation).

protected method

Resize

Represents method Resize.

Top

expandingEvents

 

Name

Description

published event

OnGenerateControl

Event for when a VCL control is generated for a SVG element

Use the OnGenerateControl event to modify the VCL control after it has been created and initialized for an SVG element.

Top

expandingRemarks

alert_cautionImportant Note

To create permanent VCL controls for the SVG at design-time, right click the TRSSVGPanel and select "Create SVG Controls..." After the controls are generated, the SVGDocument property will be nil.

expandingSee Also

Reference

Comments (0)

RiverSoftAVG SVG Component Library (RSCL) © 2013-2015, Thomas G. Grubb