Plugin: hpwSimpleGraph

Here is a plugin to make structured graphs.

Based on the excellent free TSimpleGraph component 2.91 from http://www.delphiarea.com

Info about TSimpleGraph: TSimpleGraph product page

Copyright Kambiz R. Khojasteh. All rights reserved.

Here is release 1.37:

hpwSimpleGraph137.zip 1561 KB


History:


Release 1.37:(26.01.2019)

hpwSimpleGraph now resizes with its rectangle.
Additional demo: hpwSimpleGraphResize.pub
New action-variable: [hpwSimpleGraphPubPosSize]
New action-variable: [hpwSimpleGraphPubMinimized]
New action-variable: [hpwSimpleGraphPubRestored]
Action: hpwSimpleGraphSetSize now disable the new alignment to the rectangel and set the size


Release 1.36:(12.07.2018)

New variable for positioning of the popup-dialogs:
[hpwSimpleGraphNodePropLeft]
[hpwSimpleGraphNodePropTop]
[hpwSimpleGraphObjectPropLeft]
[hpwSimpleGraphObjectPropTop]
[hpwSimpleGraphLinkPropLeft]
[hpwSimpleGraphLinkPropTop]
[hpwSimpleGraphMarginsPropLeft]
[hpwSimpleGraphMarginsPropTop]
[hpwSimpleGraphDesignPropLeft]
[hpwSimpleGraphDesignPropTop]


Release 1.35:(23.06.2015)

Action: hpwSimpleGraphUnSelectObj with parameter: 'ALL' or one or more unique ID (pipe).


Release 1.34:(24.02.2014)

Component-Upgrade of TSimpleGraph from 2.9 to 2.91 (Bugfix for wordwrap)


Release 1.33:(12.11.2013)

Recompiled with updated Png-Library with fix for reloading nodes with PNG-Background.


New upload(01.11.2013)

Plugins are now uncompressed without upx-compression.


Release 1.32:(15.05.2013)

Action: hpwSimpleGraphSetVar - wizard now has a adv.file button for [hpwSimpleGraphNodeBgFile]
Action: hpwSimpleGraphSetObjectProperty - wizard now has a adv.file button for property NodeBgFile
Action: hpwSimpleGraphLoadFromFile - wizard now has a file button for the file-param
Action: hpwSimpleGraphSaveToFile - wizard now has a file button for the file-param


Release 1.31:(14.05.2013)

Action: hpwSimpleGraphSetVar - Set a variable for the plugin. (Identical with SetVar but advanced plugin wizard)
Action: wizard for hpwSimpleGraphSetObjectProperty much improved


Release 1.30:(11.05.2013)

Default-Variable [hpwSimpleGraphNodeBgFile] now supports Bmp/Jpg/Png from disk,embedded and mimestream

Action: hpwSimpleGraphSetObjectProperty - now supports property 'NodeBgFile' with Bmp/Jpg/Png from disk,embedded and mimestream


Release 1.29:(10.05.2013)

Component-Upgrade of TSimpleGraph from 2.8 to 2.9

Variable: [hpwSimpleGraphLabelMargin] was missing for Default-setting on Create.
Variable: [hpwSimpleGraphLinkTextPosition] was missing for Default-setting on Create.
Variable: [hpwSimpleGraphLinkTextSpacing] was missing for Default-setting on Create.

Action: hpwSimpleGraphGetObjectInfo - now supports all properties from node and link.

New Action: hpwSimpleGraphSetObjectProperty - set all properties from node and link by code.


Release 1.28:(02.12.2012)

Component-Upgrade of TSimpleGraph from 2.62 to 2.8


Release 1.27a:(05.09.2009)

Bugfix for reading command description from the INI-file.


Release 1.27:(19.08.2009)

Recompiled without Win32.Induc delphi virus


Release 1.26:(17.5.2009)

Color value 0x..... and RGBINT...... now supported.

Changed the used runtime-packer for a better vista-compatibility.


Release 1.25:(16.1.2009)

All commands wizards show the exact command in the wizards dialog caption.

All commands wizards show the command, plugin-name and the command-hint similar to neobook's native commands.

Corrected wizards for hpwSimpleGraphBringToFront and hpwSimpleGraphSendToBack now showing both parameters.


Release 1.24:(13.1.2009)

Action: hpwSimpleGraphSetNodeSize - Set node to new size by code.

All actions accessing objects by ID return an error when a unknown ID is used.


Release 1.23:(7.1.2009)

Action: hpwSimpleGraphSetObjectText - Set text or hint of a given object by its ID.

Variable: [hpwSimpleGraphNodeDefaultHint] - When set this hint-text is used for a new created nodes.

Variable: [hpwSimpleGraphLinkDefaultHint] - When set this hint-text is used for a new created links.

Variables: All actions which sets a text-variable now also set a hint variable.
Example: [RectangleName_SelText] and [RectangleName_SelHint] (see debugger for others)


Release 1.22:(2.1.2009)

Changed compiler to delphi 7

Wizards now compatibel look with neobook 5.6


Release 1.21:(22.7.2008)

Bugfix for rectangle-handles > 32 bit


Release 1.20:(14.5.2007)

Compiled with Delphi5 again because the Delphi5 Bug is fixed.


Release 1.19:(14.5.2007)

Now compiled with Delphi7 because of a Delphi5 Bug.

Variable: [hpwSimpleGraphObjectOptions] Flags: 'goLinkable,goSelectable,goShowCaption'

Variable: [hpwSimpleGraphNodeOptions] Flags: 'gnoMovable,gnoResizable,gnoShowBackground'

Variable: [hpwSimpleGraphLinkOptions] Flags: 'gloFixedStartPoint,gloFixedEndPoint,gloFixedBreakPoints'


Release 1.18:(8.5.2007)

Action: hpwSimpleGraphMoveNodeTo - Move node to new pos by code.


Release 1.17:(16.2.2007)

Action: hpwSimpleGraphGetObjectInfo - Get info about a given obeject by its ID.


Release 1.16:(12.2.2007)

Disabled hpwSimpleGraphShowScrollbars let now zoom and pan work


Release 1.15:(11.2.2007)

Action: hpwSimpleGraphSetSrollbars - Set the visibility of the scrollbars of a SimpleGraph-control.

Variable: hpwSimpleGraphShowScrollbars - Set the visibility of the scrollbars on Create.

Action: hpwSimpleGraphScrollCenterPoint - Scroll the point into center of a SimpleGraph-control.

Action: hpwSimpleGraphScrollCenterRect - Scroll the rect into center of a SimpleGraph-control.

Action: hpwSimpleGraphScrollCenterObject - Scroll the object into center of a SimpleGraph-control.

Action: hpwSimpleGraphScrollInViewPoint - Scroll the point into the view of a SimpleGraph-control.

Action: hpwSimpleGraphScrollInViewRect - Scroll the rect into the view of a SimpleGraph-control.

Action: hpwSimpleGraphScrollInViewObject - Scroll the object into the view of a SimpleGraph-control.


Release 1.14:(29.1.2007)

Action: hpwSimpleGraphSetSize - Set the size of a SimpleGraph-control.

Fix: Resizing the rectangle now resizes the simplegraph-component

Node-property dialog with reduced height for smaller screen-resolutions

Resource-strings for german and spanish included.


Release 1.13:(22.1.2007)

Added more option to translate the runtime-dialogs (Combos/RadioGroup).

Resource-strings are loaded from neobook variable (See *Prop.res files).


Release 1.12:(20.1.2007)

Added an option to translate the runtime-dialogs.

Resource-strings are loaded from neobook variable (See *Prop.res files).


Release 1.11:(19.1.2007)

Using NB 5.5.3 new privat variable to publish the DLL-name.


Release 1.10:(22.10.2006)

Bugfix for TaskBarClickAndRestoreOnTop for About-dialog and command wizards

Action: hpwSimpleGraphFindObjectAt - Find object-id at position at X|Y.

Action: hpwSimpleGraphFindObjectRect - Find object-ids in rectangle (LEFT|TOP|RIGHT|BOTTOM).

Action: hpwSimpleGraphGetSnapPoint - Get snap-point at X|Y.


Release 1.09:(22.04.2006)

Variable: hpwSimpleGraphNodeBgStyle - Set the node background style.

Variable: hpwSimpleGraphNodeBgMargins - Set the node background margins. (LEFT|TOP|RIGHT|BOTTOM)

Variable: hpwSimpleGraphNodeBgFile - Set the node background file. (BMP,JPG,PNG,WMF)

Variable: hpwSimpleGraphNodeBgTransMode - Set the node background transparentmode. (tmAuto,tmFixed)

Variable: hpwSimpleGraphNodeBgTransColor - keycolor for transparentmode tmFixed.

Variable: hpwSimpleGraphNodeBgTransparent - Flag to set node bg transparent. [BMP/PNG-WMF always]


Release 1.08:(18.04.2006)

Action: hpwSimpleGraphSetCursor - Set the cursor of a SimpleGraph-control.

Action: hpwSimpleGraphCreateNode - Insert node-object by code.

Action: hpwSimpleGraphCreateLink - Insert link-object by code.

Node property dialog now with position and size fields.


Release 1.07:(11.04.2006)

Action: hpwSimpleGraphSetAction - Set all actions of a SimpleGraph-control.

Changed: Variable [RectangleName_DblClickAction] is now OnLeftDoubleClick parameter
Changed: Variable [RectangleName_NodeDblClickAction] is now OnNodeDoubleClick parameter
Changed: Variable [RectangleName_LinkDblClickAction] is now OnLinkDoubleClick parameter
Changed: Variable [RectangleName_KeyDownAction] is now OnKeyDown parameter
New: OnLeftMouseUp parameter
New: OnMiddleMouseUp parameter
New: OnRightMouseUp parameter
New: OnMouseMove parameter
New: OnLeftMouseDown parameter
New: OnObjectMouseEnter parameter
New: OnObjectMouseLeave parameter
New: OnInfoTip parameter


Variable: [RectangleName_InfoType] - set in the info-tip event
Variable: [RectangleName_InfoText] - set in the info-tip event
Variable: [RectangleName_InfoStartX] - set in the info-tip event
Variable: [RectangleName_InfoStartY] - set in the info-tip event
Variable: [RectangleName_InfoStartHooked] - set in the info-tip event
Variable: [RectangleName_InfoEndX] - set in the info-tip event
Variable: [RectangleName_InfoEndY] - set in the info-tip event
Variable: [RectangleName_InfoEndHooked] - set in the info-tip event
Variable: [RectangleName_InfoBreakPoints] - set in the info-tip event
Variable: [RectangleName_InfoLeft] - set in the info-tip event
Variable: [RectangleName_InfoTop] - set in the info-tip event
Variable: [RectangleName_InfoWidth] - set in the info-tip event
Variable: [RectangleName_InfoHeight] - set in the info-tip event

Variable: [RectangleName_ObjectInfoString] - Can be set in the OnInfoTip-action to show custom hint


Release 1.06:(30.03.2006)

Component-Upgrade of TSimpleGraph from 2.4 to 2.61

Changed: hpwSimpleGraphDeleteObj has now 1 parameter: 'SEL' or one or more unique ID (pipe).

Changed: hpwSimpleGraphSelectAll to hpwSimpleGraphSelectObj has now 1 parameter: 'ALL' or one or more unique ID (pipe).

Changed: hpwSimpleGraphBringToFront has now 1 parameter: 'SEL' or one or more unique ID (pipe).

Changed: hpwSimpleGraphSendToBack has now 1 parameter: 'SEL' or one or more unique ID (pipe).

Changed: Mouse-Wheel zoom now focus the cursor location on zoom.

Action: hpwSimpleGraphAlignSelection - Lines up selected objects in relation to each other.

Action: hpwSimpleGraphResizeSelection - Resizes selected objects to be exactly the same height or width.


Release 1.05:(23.03.2006)

Changed: hpwSimpleGraphCopy has now 2 parameter: Formatflag and Selection/Complete

Action: hpwSimpleGraphZoomRect - Zooms the view, so that the specified rectangle fits the plugin area.
Action: hpwSimpleGraphZoomObject - Zooms the view, so that the specified object fits the plugin area.
Action: hpwSimpleGraphZoomSelection - Zooms the view, so that the selected objects fit the plugin area.
Action: hpwSimpleGraphZoomGraph - Zooms the view, so that the graph entirly fits the plugin area.


Release 1.04:(22.03.2006)

Component-Upgrade of TSimpleGraph from 2.3 to 2.4

Additional hpwSimpleGraph.nbo plugin without runtime edit-dialogs

4 copy-batches to switch between different plugins (Use copy_NBP2ORG.bat first)


Release 1.03:(21.03.2006)

Component-Upgrade of TSimpleGraph from 2.2 to 2.3

hpwSimpleGraphMode now supports the new cmPan parameter (Panning in zoomed view)
hpwSimpleGraphNew now set commandmode from variable [hpwSimpleGraphCommandMode]

Variable: [Rectanglename_LastSelNodeId]+[Rectanglename_LastSelLinkId]
Variable: [Rectanglename_GraphBoundsLeft]+[Rectanglename_GraphBoundsRight]
Variable: [Rectanglename_GraphBoundsTop]+[Rectanglename_GraphBoundsBottom]
Variable: [Rectanglename_ObjectsCount]


Release 1.02:(19.03.2006)

Component-Upgrade of TSimpleGraph from 2.0 to 2.2

Action: hpwSimpleGraphExportToBitmap - Exports the graph to bitmap-file (BMP/JPG/PNG).
Action: hpwSimpleGraphMergeFromFile - Merge a graph from file with offset x/y.
Action: hpwSimpleGraphMergeFromExe - Merge a graph from Exe with offset x/y.
Action: hpwSimpleGraphMakeAllSelectable - Set all obejects back to selectable.

Variable: [Rectanglename_MouseMoveX]+[Rectanglename_MouseMoveY]
Variable: [Rectanglename_MouseMoveOverText]+[Rectanglename_MouseMoveOverId]


Release 1.01:(12.03.2006)

Variable: [hpwSimpleGraphDblClickAction] change to [RectangleName_DblClickAction]
Variable: [hpwSimpleGraphNodeDblClickAction] change to [RectangleName_NodeDblClickAction]
Variable: [hpwSimpleGraphLinkDblClickAction] change to [RectangleName_LinkDblClickAction]


Variableslist:

[hpwSimpleGraphCommandMode]
[hpwSimpleGraphBackColor]
[hpwSimpleGraphGridColor]
[hpwSimpleGraphMarkerColor]
[hpwSimpleGraphShowGrid]
[hpwSimpleGraphSnapToGrid]
[hpwSimpleGraphGridSize]
[hpwSimpleGraphZoomValue]
[hpwSimpleGraphFontName]
[hpwSimpleGraphFontColor]
[hpwSimpleGraphFontSize]
[hpwSimpleGraphFontStyle]
[hpwSimpleGraphFontCharset]
[hpwSimpleGraphShowhint]
[hpwSimpleGraphHint]
[hpwSimpleGraphCursor]
[hpwSimpleGraphLabelAlignH]
[hpwSimpleGraphLabelAlignV]
[hpwSimpleGraphNodeBgColor]
[hpwSimpleGraphNodeBoColor]
[hpwSimpleGraphNodeDefaultText]
[hpwSimpleGraphNodeBorderStyle]
[hpwSimpleGraphLinkBgColor]
[hpwSimpleGraphLinkBoColor]
[hpwSimpleGraphLinkLineWidth]
[hpwSimpleGraphLinkDefaultText]
[hpwSimpleGraphLinkBeginStyle]
[hpwSimpleGraphLinkBeginSize]
[hpwSimpleGraphLinkEndStyle]
[hpwSimpleGraphLinkEndSize]
[hpwSimpleGraphLinkLineStyle]

[RectangleName_KeyDownAction]
[RectangleName_DblClickAction]
[RectangleName_NodeDblClickAction]
[RectangleName_LinkDblClickAction]


Initial Release 1.0:(11.03.2006)


Actionlist:

hpwSimpleGraphCreate = Append a SimpleGraph-Control to an existing NeoBook Rectangle object.
hpwSimpleGraphDelete = Remove a SimpleGraph-control previously attached to a Rectangle object.
hpwSimpleGraphShowGrid = Show or hide the grid of a SimpleGraph-control.
hpwSimpleGraphGridSize = Set the gridsize of a SimpleGraph-control.
hpwSimpleGraphNoZoom = Reset the zoom to 100 of a SimpleGraph-control.
hpwSimpleGraphZoomIn = Zoom in by 25 on a SimpleGraph-control.
hpwSimpleGraphZoomOut = Zoom out by 25 on a SimpleGraph-control.
hpwSimpleGraphZoomValue = Zoom to a specific value on a SimpleGraph-control.
hpwSimpleGraphNew = Start fresh with the simplegraph.
hpwSimpleGraphLoadFromFile = Load a graph from file in a SimpleGraph-control.
hpwSimpleGraphSaveToFile = Save a graph to file of a SimpleGraph-control.
hpwSimpleGraphLoadFromExe = Load a graph from Exe in a SimpleGraph-control.
hpwSimpleGraphPrint = Prints a graph on a printer.
hpwSimpleGraphExportToEMF = Exports the graph to EMF-file.
hpwSimpleGraphCut = Cut selected graph-objects.
hpwSimpleGraphCopy = Copy selected graph-objects.
hpwSimpleGraphPaste = Paste selected graph-objects.
hpwSimpleGraphDeleteObj = Delete selected graph-objects.
hpwSimpleGraphSelectAll = Select all graph-objects.
hpwSimpleGraphInvertSelection = Invert selection of graph-objects.
hpwSimpleGraphBringToFront = Bring selected graph-objects to front.
hpwSimpleGraphSendToBack = Send selected graph-objects to back.
hpwSimpleGraphLockNodes = Lock/unlock node-graph-objects.
hpwSimpleGraphLockLinks = Lock/unlock link-graph-objects.
hpwSimpleGraphEditProperties = Edit properties of graph-Objects.
hpwSimpleGraphLabelFormat = Set label format of selected nodes.
hpwSimpleGraphLabelAlignH = Set horizontal label alignment of selected nodes.
hpwSimpleGraphLabelAlignV = Set vertical label alignment of selected nodes.
hpwSimpleGraphMode = Switch to different modes.
hpwSimpleGraphInsRectangle = Switch to insert rectangle mode.
hpwSimpleGraphInsRoundRectangle = Switch to insert rounded rectangle mode.
hpwSimpleGraphInsEllipse = Switch to insert ellipse mode.
hpwSimpleGraphInsTriangle = Switch to insert triangle mode.
hpwSimpleGraphInsRhomboid = Switch to insert rhomboid mode.
hpwSimpleGraphInsPentagon = Switch to insert pentagon mode.
hpwSimpleGraphInsHexagon = Switch to insert hexagon mode.
hpwSimpleGraphInsLink = Switch to insert link mode.