Sheet:
Filter:
Classes (extension) | Libraries > crucial > GUI

Sheet : Object
ExtensionExtension

utility to create a single auto-resized window
Source: Dialogs.sc

Description

The name sheet comes from Cocoa where a Sheet is the window that slides down asking you to deal with something (like a license agreement).

In practice, since the Sheet syntax is so convienient, its been used for many cases where a window with auto-resizing is wanted.

Class Methods

Sheet.new(buildDialog, name: "", bounds)

Arguments:

buildDialog
name
bounds

Sheet.getString(prompt, defaultString, callback)

Arguments:

prompt
defaultString
callback

Inherited class methods

Instance Methods

Inherited instance methods

Examples

Although the composite view inside has been shrunk down to fit its contents, the flow view's decorator still has the large size accounted for as "used up" (the maximum that was available for the composite view to consume).

solution: