Visit Gigasoft's Web Site
 ProEssentials v9 Help



Pego, Pesgo, Pe3do, Pepso, Pepco


public int PeFunction.Reinitialize ( )

The primary reason we supply this function is to allow the developer to read certain properties without having to first generate an image.


This function is normally not needed, usually ReinitializeResetImage is called at the end of your initialization which internally includes this call.


This function reinitializes the object by resetting all internal variables in preparation to generate a new image with ResetImage. If axis scales are being automatically configured (for example, ManualScaleControlY = None) then this function will determine the axis range and store the results in ManualMinY, and ManualMaxY properties. This is useful if you want to interogate ManualMinY and ManualMaxY and then modify these extents and/or add annotations which correspond to their values. All without having to waste processor time building an unnecessary image.



NonZero if the function was successful, otherwise Zero.



PeFunction.Reinitialize members of Pego.PeFunction, Pesgo.PeFunction, Pe3do.PeFunction, Pepso.PeFunction, Pepco.PeFunction


Usage: at the end of an objects initialization or reinitialization code (where you want to potentially read some properties before generating an image), this call is usually used as follows...



// Read ManualMinY or other properties as needed, and adjust scales, annotations, or logic as needed.

Pego1.PeFunction.Reinitialize // you may need to recall Reinitialize if changing data, but leaving this call out may be possible




Look also at Chapter 7, Question 6 which talks about when and where to call this function.