HeaderPane
Main

SftPicture2 Documentation

Share Link
Print

SFT_TEXT Flags

Bit flags for the flag2 field on SFT_TEXT. Control the text-area background and outline used during hit-testing and selection rendering.

#define SFT_TEXT_CARET              0x01
#define SFT_TEXT_FULLHEIGHT         0x02
#define SFT_TEXT_INFLATEBACKGROUND  0x04
#define SFT_TEXT_OUTLINESELECTION   0x10
#define SFT_TEXT_PAINTOUTLINE       0x20
FlagEffect
SFT_TEXT_CARET (0x01)Draw a caret-style outline around the text.
SFT_TEXT_FULLHEIGHT (0x02)Use the full slot height (instead of the text height) for the background or selection outline.
SFT_TEXT_INFLATEBACKGROUND (0x04)Inflate the text-only background rectangle by a small amount before painting.
SFT_TEXT_OUTLINESELECTION (0x10)Use the selection outline rather than the background rectangle for hit-test space determination.
SFT_TEXT_PAINTOUTLINE (0x20)Paint the selection outline rather than the background rectangle.

Flags can be combined with bitwise OR. The flags interact only with the text-area background and outline; they do not affect the text content itself.

See Also SftPicture2 | SFT_TEXT


Last Updated 05/09/2026 - (email)
© 2026 Softel vdm, Inc.