TX Text Control ActiveX Documentation

TXTextControl.ImageFilters Property

This property returns a string which specifies the available image filters. This string can be used to initialize the Filter property of a Common Dialog control.

Syntax

TXTextControl.ImageFilters

Remarks

The filter names are read from the tx17_ic.ini file. Filters for JPEG, PNG, TIFF, Bitmap and Windows Metafiles are supplied.

Data Types

String.

Limitations

Read only, run time only.

Example

This Basic example initializes an OpenFile dialog box with the names of the available image filters and then loads a selected image:

dlgFile.DialogTitle = "Insert Image"
dlgFile.Filename = ""
dlgFile.Filter = TXTextControl1.ImageFilters
dlgFile.FilterIndex = 1
dlgFile.Flags = cdlOFNPathMustExist Or cdlOFNFileMustExist _
   Or cdlOFNHideReadOnly
dlgFile.CancelError = True
dlgFile.ShowOpen
TXTextControl1.ImageInsertAsChar dlgFile.Filename, -1, 100, 100

See Also

 
 
 

Products

Support

Downloads

Corporate

Buy Now