FutureBasic Logo

<<    Index    >> FutureBasic 5

appearance window   statement



Syntax:
appearance window [-] wNum[, [title$][, [rect][, [windowClass][, [windowAttributes] ]]]]

Description:
Use this statement to do any of the following:
The appearance window statement closely follows the older window statement, but is used primarily for the creation of windows. You may freely mix window functions and window statements with windows that are created via the appearance window statement. For instance, after creating a window with the appearance window statement, you could determine its size with the window(_width) and window(_height) functions.
Appearance Window Image 01
Appearance Window Image 02
Windows with and without theme backgrounds

The parameters for appearance window should be specified as follows. They are interpreted slightly differently depending on whether you are creating a new window or altering an existing one.
(x1,y1)-(x2,y2)
Two diagonally opposite corner points.
@rectAddr& Long integer expression or pointer variable which points to an 8-byte struct such as a Rect type

   windowClass - an unsigned long integer that specifies the Macintosh window class. To create a windowClass variable use the following syntax:
dim wc as WindowClass

windowClass   Description
_kAlertWindowClass
  I need your attention now.
_kMovableAlertWindowClass   I need your attention now, but I'm kind enough to let you switch out of this app to do other things
_kModalWindowClass   system modal, not draggable
_kMovableModalWindowClass   application modal, draggable
_kFloatingWindowClass   floats above all other application windows. Available in OS 8.6 or later
_kDocumentWindowClass   document windows
_kDesktopWindowClass   the desktop
_kHelpWindowClass   help windows
_kSheetWindowClass   sheets
_kToolbarWindowClass   floats above docs, below floating windows
_kPlainWindowClass   plain
_kOverlayWindowClass   overlays
_kSheetAlertWindowClass   sheet alerts
_kAltPlainWindowClass   plain alerts
   windowAttributes - this unsigned long integer describes the features and widgets available to a window such as a close box, grow box, or a collapse box. You can dimension a windowAttributes variable as follows:
dim wa as WindowAttributes

windowAttributes   Description
_kWindowNoAttributes
  none
_kWindowCloseBoxAttribute   close box
_kWindowHorizontalZoomAttribute   horizontal zoom
_kWindowVerticalZoomAttribute   vertical zoom
_kWindowFullZoomAttribute   standard zoom
_kWindowCollapseBoxAttribute   collapse box (sends to MacOS X dock)
_kWindowResizableAttribute   grow box
_kWindowSideTitlebarAttribute   title on side for floating window
_kWindowNoUpdatesAttribute   does not receive update event
_kWindowNoActivatesAttribute   does not receive activate event
_kWindowToolbarButtonAttribute   has a toolbar button in title bar
_kWindowNoShadowAttribute   no drop shadow
_kWindowLiveResizeAttribute   resize events repeatedly sent while window is being sized
_kWindowStandardDocumentAttributes   close box, zoom box, collapse box, grow box
_kWindowStandardFloatingAttributes   close box, collapse box

To Create a New Window
See Also:
MinWindow; MaxWindow; get window; window close; window output; window function