FutureBasic Logo

<<    Index    >> FutureBasic

box   statement



Syntax
box tag, title, rect, type, wndTag

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

Parameters
Parameter
Description
tag A number (1 through 1000000) that you assign when you create the box and that you refer to when altering or closing the box. 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 box.
title The box title.
rect The box'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 box.
(ii) A CGRect value
type The box type:
NSBoxPrimary (default)
NSBoxSeparator
NSBoxOldStyle
NSBoxCustom
wndTag An optional parameter for when the box'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
NSBox