Available in the LEADTOOLS Imaging toolkit. |
ShowTextDlg method (ILEADRasterDlgEfx)
Overview |
Refer to Using Imaging Common Dialogs |
Remarks
Displays the Text dialog box, and gets the options for the Text property.
The layout and action of the dialog depends on the flags set in the UIFlags property. Possible options are:
Value |
Meaning |
TEXT_SHOW_CONTEXTHELP |
[0x00000001] dialog should contain a context sensitive help icon. |
TEXT_SHOW_PREVIEW |
[0x00000002] show a preview of the image in the dialog, The Common Dialog Bitmap property must be assigned a valid bitmap before calling this method. |
TEXT_AUTOPREVIEW |
[0x00000004] auto preview when options change |
TEXT_SAMPLETEXT |
[0x00000008] sample text edit box is an option |
TEXT_STYLE |
[0x00000010] text style is an option |
TEXT_COLOR |
[0x00000020] text color is an option |
TEXT_BORDERCOLOR |
[0x00000040] border color is an option |
TEXT_ALIGN |
[0x00000080] alignment is an option |
TEXT_ANGLE |
[0x00000100] angle is an option |
TEXT_WORDWRAP |
[0x00000200] word-wrap is an option |
TEXT_FONT |
[0x00000400] font is an option |
TEXT_FOREIMAGE |
[0x00000800] foreground image is an option |
TEXT_BROWSEIMAGE |
[0x00001000] browse image button is an option |
TEXT_SHADOWCOLOR |
[0x00002000] shadow color is an option |
TEXT_SHADOW_X_Y |
[0x00004000] shadow x and y are options |
These values may be combined by ORing them.
If you include DLG_TEXT_SHOW_PREVIEW in the UIFlags property, the Common Dialog Bitmap property must be assigned a valid bitmap before calling this method.
To include a Help button in the dialog, set the ShowHelpButton property to VARIANT_TRUE.
The Get Text dialog can be seen below:
See Also
Elements |
TextStyle property, ShowHelpButton property, UIFlags property |