|
All ActiveX interfaces include a PEactions property. This
feature allows calling ProEssentials DLL calls via a property based interface
when and if it's desired. The
most important thing to remember about PEactions is that it's used to
undo the zoom state, and reinitialize the chart after setting properties,
PEGraph1.PEactions := gUndoZoom
;
PEGraph1.PEactions := gReinitAndReset;
{Calls
PEreinitialize,
PEresetimage}
Using PEactions to call DLL functions is optional and Delphi has means
of calling the ProEssentials DLL directly. If you need to call ProEssentials
functions from within Delphi, be sure to add "Pegrpapi" to your
uses clause. In Builder, you can include the standard c header file "PEGRPAPI.H"
as needed.
Related to PEactions are PEnarg1,
PEnarg2, and PEstrarg1
which provide for function arguments where needed. For those PEactions
that call ProEssentials functions requiring arguments, use:
PEnarg1 to set the width argument
PEnarg2 to set the height argument
PEstrarg1 to set the path\filename argument
*Note: Be sure to initialize these argument type properties before setting
the PEactions property.
Below are Delphi VCL Enumerations for the PEactions property. Note that
you replace the x prefix with either g(graph), sg(scientific graph), td(3D
scientific graph), ps(polar/smith), or pc(pie chart).
ePEactions = (
xReinitAndReset,
xReinitialize,
xResetImage,
xInvalidateImage,
xMaximize,
xCustomize,
xExportDialog,
xTextExportDialog,
xPrintDialog,
xColorDialog,
xFontDialog,
xPopupMenu,
xMetaToClip,
xMetaToFile,
xBmpToClip,
xBmpToFile,
xReinitCustoms,
xPrintGraph,
xUndoZoom,
xReset,
xJpegToClip
xJpegToFile
xPngtoClip
xPngtoFile);
|