PDA

View Full Version : Adds to create forms


fmalesa
August 22, 2007, 20:31:41
This is to add or change in the.

Tables
Properties
TXTextControl.TableEditMode
Specifies if the contents of a table can be changed by the user.
0 - Edit (Default) Edit mode. This mode can be used to edit and display text. The cursor is the text I-beam cursor.
1 - Read and Select Read-only mode. This mode can be used to display and select text. The cursor is the standard arrow cursor.
2 - Read only This mode can be used to display text only. Text input and selecting text with the mouse or the keyboard is not possible. The cursor is the standard arrow cursor.
This property must have priority over the control editmode, if the control editmode is readonly, and the table is edit then the edition inside the table is allowed the rest of the document remains readonly.

TXTextControl.TableCellEditMode
Specifies if the contents of a table cell can be changed by the user.
0 - Edit (Default) Edit mode. This mode can be used to edit and display text. The cursor is the text I-beam cursor.
1 - Read and Select Read-only mode. This mode can be used to display and select text. The cursor is the standard arrow cursor.
2 - Read only This mode can be used to display text only. Text input and selecting text with the mouse or the keyboard is not possible. The cursor is the standard arrow cursor.
This property must have high priority over the control editmode and table editmode, if the control editmode is readonly, and the table is edit then the edition inside the table is allowed the rest of the document remains readonly.

TXTextControl.TableCurrent
Return or Set the identifier of the current table for the table properties, methods and events, do not matter the cursor position.

TXTextControl.TableCellCurrent
Return or Set the identifier of the current cell table for the table properties, methods and events, do not matter the cursor position.

TXTextControl.TableData
This property relates numeric or string data to a table.


TXTextControl.TableCellData
This property relates numeric or string data to a cell table.

TXTextControl.TableResize
Specifies if the horizontal size of a table and cells can be changed by the user.

TXTextControl.TableCellAttribute

txTableCellResize (16) The property value is indicating if the user can resize a specific cell.

TXTextControl.TableCanCopyPaste
The property value is indicating if the user can copy and paste the current table.

TXTextControl.TableCanMove The property value is indicating if the user can move the table, in MS-Word like style:


So the select icon is displayed in order to take the action.

TXTextControl.TableHidden
This property set the table hidden or not hidden. No space is leaved in the editor in hidden mode. This property hides the entire table context; this includes text, images, and tables.

Methods
Methods Description
TXTextControl.TableInsert
This method inserts a new table in text, “TableID Optional. Specifies a table identifier. This identifier can be used to access or to alter the table's text and attributes. It must be in the range of 10 to 32,767”, if TableID is different to -1 then the inserted table will not be merged, it remains with its own properties.

TXTextControl.TableDelete
Deletes the table specified by the TableCurrent property, or changes it to simple text.

TXTextControl.TableGoto
Sets the current input position to the beginning of the specified table and scrolls the text so that this position is at the top of the control’s visible text.

TXTextControl.TableCellGoto
Sets the current input position to the beginning of the specified cell table and scrolls the text so that this position is at the top of the control’s visible text.


Events
Event Description
TXTextControl.TableChanged
Occurs when the text of the table (in any cell) has been changed.

TXTextControl.TableClicked
Occurs when a table has been clicked on.

TXTextControl.TableDblClicked
Occurs when a table has been double-clicked on.

TXTextControl.CellClicked
Occurs when a table cell has been clicked on.

TXTextControl.CellDblClicked
Occurs when a table cell has been double-clicked on.

TXTextControl.TableEntered
Occurs when the current input position, indicated by the caret, has been moved to a position that belongs to a table in any cell.

TXTextControl.TableCellEntered
Occurs when the current input position, indicated by the caret, has been moved to a position that belongs to a cell table.

TXTextControl.TableLeft
Occurs when the current input position, indicated by the caret, has been moved to a position that does not belong to a table at the previous input position.

TXTextControl.TableCellLeft
Occurs when the current input position, indicated by the caret, has been moved to a position that does not belong to a cell table at the previous input position

TXTextControl.TableSetCursor
Occurs when the cursor is moved over a table.

TXTextControl.TableCellSetCursor
Occurs when the cursor is moved over a cell table.

Text Fields
Properties
Property Description
TXTextControl.FieldsCountInTable
Informs about the number of text fields inside the table contains.
[integer] =TXTextControl.FieldsCountInTable (TableaId)

TXTextControl.FieldsCountInTableCell
Informs about the number of text fields inside the table cell contains.
[integer] =TXTextControl.FieldsCellCountInTable (TableId, Row, Column)


TXTextControl.FieldFirstInTable
Informs about the first field inside the table including all cells, return the fieldId, if no fields exist then it return 0.
[integer]FieldId =TXTextControl.FieldFirstInTable (TableaId)

TXTextControl.FieldLastInTable
Informs about the last field inside the table including all cells, return the fieldId, if no fields exist then it return 0.
[integer]FieldId =TXTextControl.FieldLastInTable (TableaId)


TXTextControl.FieldFirstInTableCell
Informs about the first field inside the table cell, return the fieldId, if no fields exist then it return 0.
[integer]FieldId =TXTextControl.FieldFirstInTableCell (TableaId, Row, Column)

TXTextControl.FieldLastInTableCell
Informs about the last field inside the table cell, return the fieldId, if no fields exist then it return 0.
[integer]FieldId =TXTextControl.FieldLastInTableCell (TableaId, Row, Column)

Björn Meyer
August 23, 2007, 12:16:14
Thanks for your detailed suggestions. We will consider these ActiveX improvements for a future version. From a first view, these properties are really specific for a particular application (FieldsCountInTable).

Most of these properties can be realized with the current set of properties and methods of TX Text Control. We are always trying to keep TX Text Control as flexible and simple as possible.

Anyway, thanks for your suggestions. I am sure that some of these properties are really helpful.