Window

From REALbasicWiki

Jump to: navigation, search

[edit] The Window class

[edit] Sheet windows

Sheet windows are a Mac OS X-only feature. The are used as modal dialogs appearing inside a non-modal window. This allows the user to make a visual connection between a dialog and the window or document it refers to.

Here's an example of a sheet window:

Image:Sheet_win_example.png

To use a sheet window, first create a window and set its Frame property to 8 - Sheet Window. To show it in a (parent) window, invoke it like this, e.g. from a PushButton of that parent window:


dim sheetWin as new ASheetWindow
sheetWin.ShowModalWithin self

[edit] Making sheet windows resizeable

Currently (RB 2008r2), the Window property Resizeable is ignored — sheet windows are shown at a fixed size and cannot be resized by the user with the mouse.

See this page for a work-around.

Personal tools
related