IPCsDatafield


Topic:

Properties and methods of IPCsDatafield


Class hierarchy:

IPCsApplication IPCsDocument IPCsPage IPCsDatafields IPCsDatafield
IPCsApplication IPCsDocument IPCsPage IPCsSymbols IPCsDatafields IPCsDatafield
IPCsApplication IPCsDocument IPCsSelectStatus IPCsSelectionArea IPCsDatafields IPCsDatafield


Properties / Methods:

SetDataNo Specifies what information the datafield should link to.
To get one of the predefined value, just use the integer specified in this list.
To get a none-predefined value, such as "CustomerName" (normally a project-data), then SetDatoNo should be used in combination with the property FieldName
Pretext The pretext. This text is always shown before the actual value of the datafield
DisplayText The entire text. Pretext + the value of the datafield
DataNo Return the DataNo, for that datafield
FieldName Used to get a none-predefined value. Set FieldName to the exact value of the information that should be fetched. See how to get a list of valid values her.
Furthermore, it's necessary to use SetDatoNo, with one of the "First"-values.
For instance, if a datafield should be set to "Customer Name", the see this codeexample
Font See more about IPCsTextFont
Color See more about psPenColor .
Ex.
Datafield.Color := integer(Co_Red);
GetPosition Gets x,y,z from a datafield. Parameters needed: 3 integers
Syntax:
procedure GetPosition(out X: Integer; out Y: Integer; out Z: Integer);
SetPosition Sets x,y,z on a datafield. Parameters needed: 3 integers
Syntax:
procedure SetPosition(X: Integer; Y: Integer; Z: Integer);
Visible Is the item visible or not
Handle A unique handle to the datafield


Comments:

Use Datafields.Item[interger] and Datafields.Count to get that/these items you want.
IPCsDatafields gives access to all selected datafields on a page through Item[integer].
IPCsDatafield is a specific datafield, (which can be selected through IPCsDatafields.Item[integer]