FutureBasic Logo

<<    Index    >> FutureBasic

TextView   statement / function

Statement syntax
textview tag, rect, scrollViewTag, textContainerRef, wndTag

Function syntax
text = textview(tag)

The textview statement puts a new textview in the current output window, or alters an existing textview's characteristics. The textview function returns the view's text as a CFStringRef and is equivalent to calling fn TextString.

tag A number that you assign when you create the textview and that you refer to when altering the view. 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 textview.
rect The textview'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 view.
(ii) A CGRect value
scrollViewTag The textView’s scrollview tag (default = 0).
<textContainerRef Optional TextContainerRef.
wndTag An optional parameter for when the textview'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.
Dialog events
_textXxxx // See text

Apple documentation