Method SetOutlineXY

Top  Previous  Next

This procedure creates an outline entry. It returns the id number of the just created outline entry. This id number can be used to create the next entry as the child of the current.

Please note that you can use the procedure SetOutlineCharset to define a certain charset for the outline. You can use the value 0 to select the default charset or one of the following constants: EASTEUROPE_CHARSET, RUSSIAN_CHARSET, GREEK_CHARSET , TURKISH_CHARSET and BALTIC_CHARSET.

Parameters

Parameters:

 

const Caption : string        

 This is the text which should be displayed in the outline tree.        

X,Y : Integer

 This is the x and y position on the current page which should be located when the user clicks on the outline entry. They are expected as twips coordinates relative to the top-left corner of the current page. (You have to add the top margin and left margin)

aParent : Integer

 If this variable is greater 0 the outline entry will be created as the child of the entry with the id provided in aParent.        

 

aPrevious : Integer

 If this variable is greater 0 the outline entry will be created after the entry with give id.

 

Note: If aParent and aPrevious are 0 the outline will be created at the top level.