This method inserts a new OLE object or other control at a fixed geometrical position. The text flows around the object.
TXTextControl.ObjectInsertFixed ObjectType, FileName, PosX, PosY, ScaleX, ScaleY, ImageDisplayMode, ImageSaveMode, SizeMode, TextFlow, DistanceL, DistanceT, DistanceR, DistanceB[, KindOfObject]
Parameter | Description | |||||||||||||||||||
ObjectType |
Specifies the type of object. It can be one of the following identifiers:
|
|||||||||||||||||||
FileName |
The meaning of this parameter depends on the object that is to be inserted. See the description of the ObjectType parameter. This parameter must be zero, if the ObjectType parameter specifies a handle to a control. |
|||||||||||||||||||
PosX |
Specifies the object's horizontal position in twips relative to the left border of the page. |
|||||||||||||||||||
PosY |
Specifies the object's vertical position in twips relative to the top of the first page. |
|||||||||||||||||||
ScaleX |
Specifies a horizontal scaling factor as a percentage. |
|||||||||||||||||||
ScaleY |
Specifies a vertical scaling factor as a percentage. |
|||||||||||||||||||
ImageDisplayMode |
This parameter is obsolete and must be set to zero. |
|||||||||||||||||||
ImageSaveMode |
This parameter is obsolete and must be set to zero. |
|||||||||||||||||||
SizeMode |
Specifies whether the image or object can be moved and/or sized. See the ObjectSizeMode property for possible values. |
|||||||||||||||||||
TextFlow |
Specifies how text flows around the image or object. It can be one of the following values:
|
|||||||||||||||||||
DistanceL, DistanceT, DistanceR, DistanceB |
Specifies distances, in twips, between the image or object and the text. |
|||||||||||||||||||
KindOfObject |
Optional. Specifies an identifier for controls that are not OLE objects. If a document is loaded which contains such controls, an ObjectGethWnd event occurs for each control to give an application the opportunity of recreating these controls. This parameter can be used to handle groups of different control types, like buttons or checkboxes. |
The method returns the object's identifier when an object could be inserted. Otherwise, it returns zero. The object's identifier can also be obtained with the ObjectCurrent property.
ObjectType: | Handle |
FileName: | String |
PosX: | Long |
PosY: | Long |
ScaleX: | Integer |
ScaleY: | Integer |
ImageDisplayMode: | Integer |
ImageSaveMode: | Integer |
SizeMode: | Integer |
TextFlow: | Integer |
DistanceL: | Integer |
DistanceT: | Integer |
DistanceR: | Integer |
DistanceB: | Integer |
KindOfObject: | Integer |
Return value: | Integer |
<< TXTextControl.ObjectInsertAsChar Method | >> TXTextControl.ObjectInsertionMode Property