Visit Gigasoft's Web Site
 ProEssentials v9 Help

PEreinitializecustoms

BOOL PEreinitializecustoms (hObject)

 

HWND 

hObject

The handle returned from PEcreate.

 

For most implementations, the use of this method is not necessary. The main difference between this method and PEreinitialize is that this function does not have to iterate all the data to find minimum and maximum values. For a chart with large quantities of data and axes this difference may be measurable, however, for most charts the difference is not measurable.

 

Returns

NonZero if the function was successful, otherwise Zero.

 

Comments

You normally call this function in the sequence:

PEreinitializecustoms

PEresetimage

InvalidateRect // Windows API call

 

Ocx|Vcl developers, see the PEactions property.

 

With Ocx, you can call this function as follows...

Pego1.PEactions = 0

'Which calls PEreinitialize, PEresetimage, and InvalidateRect

or

Pego1.PEactions = 17 'Which just calls PEreinitializecustoms

Pego1.PEactions = 2 'calls PEresetimage

Pego1.PEactions = 3 'calls InvalidateRect

 

In Delphi, use...

PEGraph1.PEactions := gReinitAndReset;

{Which calls PEreinitialize, PEresetimage, and InvalidateRect}

or

PEGraph1.PEactions := gReinitCustoms; {Calls PEreinitializecustoms}

PEGraph1.PEactions := gResetImage; {Calls PEresetimage}

PEGraph1.PEactions := gInvalidateImage; {Calls InvalidateRect}