TX Text Control ActiveX Numeric Constant Values
Our TX Text Control ActiveX version is not only used in Visual Basic 6.0 or Delphi, but also in many development environments that support the ActiveX technology like MS Access or Sybase Powerbuilder. TX Text Control ActiveX uses a lot of constant names that can be easily used in Visual Basic 6.0, but not in other languages. In these cases, the numeric values must be used. The following code can be executed in Visual Basic 6.0: TXTextControl.LoadSaveAttribute(txLoadImages) = True In other…

Our TX Text Control ActiveX version is not only used in Visual Basic 6.0 or Delphi, but also in many development environments that support the ActiveX technology like MS Access or Sybase Powerbuilder.
TX Text Control ActiveX uses a lot of constant names that can be easily used in Visual Basic 6.0, but not in other languages. In these cases, the numeric values must be used.
The following code can be executed in Visual Basic 6.0:
TXTextControl.LoadSaveAttribute(txLoadImages) = True
In other language, the numeric value of the constant must be used:
TXTextControl.LoadSaveAttribute(37) = True
I thought to share a summary list of all constants:
Constant | Value |
AppearanceStyles | |
txFlat | 0 |
tx3D | 1 |
txXP | 2 |
txColorScheme | 3 |
BulletConstants | |
txBulletChar | 0 |
txBulletFormatChar | 1 |
txBulletLevel | 2 |
txBulletPos | 3 |
txBulletSize | 4 |
txBulletTextPos | 5 |
FieldInputPositionConstants | |
txInsideField | 0 |
txOutsideField | 1 |
txInsideNextField | 2 |
FieldInputPositionConstants | |
txFieldStandard | 0 |
txFieldExternalLink | 1 |
txFieldInternalLink | 2 |
txFieldPageNumber | 3 |
txFieldLinkTarget | 4 |
txFieldHighlight | 5 |
txFieldTopic | 6 |
txFieldMSWord | 7 |
txFieldHighEdit | 8 |
LoadSaveAttributeConstants | |
txDocWidth | 0 |
txDocHeight | 1 |
txDocLeftMargin | 2 |
txDocTopMargin | 3 |
txDocRightMargin | 4 |
txDocBottomMargin | 5 |
txDocTitle | 6 |
txDocBkColor | 7 |
txCSSFile | 8 |
txCSSSaveMode | 9 |
txDocAccessPermissions | 10 |
txMasterPassword | 11 |
txUserPassword | 12 |
txImageCompressionQuality | 13 |
txImageMaxResolution | 14 |
txLoadMSWordFields | 15 |
txLoadHighEditFields | 16 |
txMSWordFieldTypeNames | 17 |
txAbsPath | 28 |
txBasePath | 29 |
txBaseFontSize | 30 |
txPropFontName | 31 |
txMonoFontName | 32 |
txTextColor | 33 |
txOverwriteTextColor | 34 |
txTextBkColor | 35 |
txOverwriteTextBkColor | 36 |
txLoadImages | 37 |
txEnableLinks | 38 |
txEnableHighlights | 39 |
txEnableTopics | 40 |
txLinkColor | 50 |
txOverwriteLinkColor | 51 |
txUnderlineLinks | 52 |
Constant | Value |
HeaderFooterConstants | |
(automatic selection) | 0 |
txHeader | 1 |
txFirstHeader | 2 |
txFooter | 4 |
txFirstFooter | 8 |
txMainText | 16 |
HeaderFooterStyleConstants | |
txMouseClick | 1 |
txNoDblClk | 2 |
txSolidFrame | 4 |
txUnframed | 8 |
ListTypeConstants | |
txListNone | 1 |
txListBulleted | 2 |
txListNumbered | 4 |
txListStructured | 8 |
NumberingConstants | |
txNumberingContinue | 0 |
txNumberingFormat | 1 |
txNumberingFormatChar | 2 |
txNumberingLevel | 3 |
txNumberingPos | 4 |
txNumberingPostChar | 5 |
txNumberingPreChar | 6 |
txNumberingReStart | 7 |
txNumberingStart | 8 |
txNumberingTextPos | 9 |
txNumberingPostText | 10 |
txNumberingPreText | 11 |
Constant | Value |
PageViewStyles | |
txClassicColors | 0 |
txGradientColors | 1 |
RulerBarDirection | |
txHorizontal | 0 |
txVertical | 1 |
SectionBreakKindConstants | |
txBeginAtNewLine | 256 |
txBeginAtNewPage | 512 |
TableCellAttributeConstants | |
txTableCellHorizontalPos | 0 |
txTableCellHorizontalExt | 1 |
txTableCellBorderWidth | 2 |
txTableCellTextGap | 3 |
txTableCellBackColor | 4 |
txTableCellLeftBorderWidth | 5 |
txTableCellTopBorderWidth | 6 |
txTableCellRightBorderWidth | 7 |
txTableCellBottomBorderWidth | 8 |
txTableCellLeftTextGap | 9 |
txTableCellTopTextGap | 10 |
txTableCellRightTextGap | 11 |
txTableCellBottomTextGap | 12 |
txTableCellVertAlign | 13 |
txTableCellHeight | 14 |
txTableCellPageBreakAllowed | 15 |
TableInsertConstants | |
txTableInsertInFront | 1 |
txTableInsertAfter | 2 |
Feel free to send me your questions about how to use TX Text Control ActiveX in various development environments. We did not test all, but we have experience with the most commonly used IDEs.
ActiveX
TX Text Control ActiveX is a royalty-free, fully programmable rich edit control that offers developers a broad range of word processing features in a reusable component. It provides comprehensive text formatting, powerful mail merge features and all word processing key concepts such as table support, images, headers and footers and page sections.