FutureBasic Logo

<<    Index    >> FutureBasic

TextInsertionIndicator   statement



Syntax
textinsertionindicator tag, rect, color, displayMode, autoModeOptions, wndTag

Requires
macOS 14.0+

Description
The textinsertionindicator statement puts a new textinsertionindicator in the current output window, or alters an existing textinsertionindicator's characteristics..

Parameters
Parameter
Description
tag A number (1 through 1000000) that you assign when you create the indicator and that you refer to when altering the indicator. The number you assign must be different from the tag value of all other existing widgets in the current window. A negative tag hides the indicator.
rect The textfield's enclosing rectangle. This can be specified in either of two ways:
(i) (x,y,w,h) where x,y are the origin and w,h the size of the field.
(ii) A CGRect value
color The indicator color as a ColorRef or one of FB's built-in constants, e.g.
_zYellow
_zGreen
_zCyan
_zBlue
_zMagenta
_zRed
_zBlack
_zWhite

See the CocoaUI.incl header for a complete list.
displayMode The display mode of the indicator.
autoModeOptions The automatic mode options of the indicator.
wndTag An optional parameter for when the indicator's window is not the current output window. Note specifying this parameter does not bring the window to the front or make it the output window.
 
Apple documentation
NSTextInsertionIndicator