TX Text Control Blog

TX Text Control ActiveX numeric constant values

Blogged by Björn Meyer on May 25, 2009 and tagged with activex, ocx, constants.

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:

ConstantValue
AppearanceStyles
txFlat0
tx3D1
txXP2
txColorScheme3
BulletConstants
txBulletChar0
txBulletFormatChar1
txBulletLevel2
txBulletPos3
txBulletSize4
txBulletTextPos5
FieldInputPositionConstants
txInsideField0
txOutsideField1
txInsideNextField2
FieldInputPositionConstants
txFieldStandard0
txFieldExternalLink1
txFieldInternalLink2
txFieldPageNumber3
txFieldLinkTarget4
txFieldHighlight5
txFieldTopic6
txFieldMSWord7
txFieldHighEdit8
LoadSaveAttributeConstants
txDocWidth0
txDocHeight1
txDocLeftMargin2
txDocTopMargin3
txDocRightMargin4
txDocBottomMargin5
txDocTitle6
txDocBkColor7
txCSSFile8
txCSSSaveMode9
txDocAccessPermissions10
txMasterPassword11
txUserPassword12
txImageCompressionQuality13
txImageMaxResolution14
txLoadMSWordFields15
txLoadHighEditFields16
txMSWordFieldTypeNames17
txAbsPath28
txBasePath29
txBaseFontSize30
txPropFontName31
txMonoFontName32
txTextColor33
txOverwriteTextColor34
txTextBkColor35
txOverwriteTextBkColor36
txLoadImages37
txEnableLinks38
txEnableHighlights39
txEnableTopics40
txLinkColor50
txOverwriteLinkColor51
txUnderlineLinks52
ConstantValue
HeaderFooterConstants
(automatic selection)0
txHeader1
txFirstHeader2
txFooter4
txFirstFooter8
txMainText16
HeaderFooterStyleConstants
txMouseClick1
txNoDblClk2
txSolidFrame4
txUnframed8
ListTypeConstants
txListNone1
txListBulleted2
txListNumbered4
txListStructured8
NumberingConstants
txNumberingContinue0
txNumberingFormat1
txNumberingFormatChar2
txNumberingLevel3
txNumberingPos4
txNumberingPostChar5
txNumberingPreChar6
txNumberingReStart7
txNumberingStart8
txNumberingTextPos9
txNumberingPostText10
txNumberingPreText11
ConstantValue
PageViewStyles
txClassicColors0
txGradientColors1
RulerBarDirection
txHorizontal0
txVertical1
SectionBreakKindConstants
txBeginAtNewLine256
txBeginAtNewPage512
TableCellAttributeConstants
txTableCellHorizontalPos0
txTableCellHorizontalExt1
txTableCellBorderWidth2
txTableCellTextGap3
txTableCellBackColor4
txTableCellLeftBorderWidth5
txTableCellTopBorderWidth6
txTableCellRightBorderWidth7
txTableCellBottomBorderWidth8
txTableCellLeftTextGap9
txTableCellTopTextGap10
txTableCellRightTextGap11
txTableCellBottomTextGap12
txTableCellVertAlign13
txTableCellHeight14
txTableCellPageBreakAllowed15
TableInsertConstants
txTableInsertInFront1
txTableInsertAfter2

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.