Next Previous Up Top Contents Index

8.11 DUIM-Gadgets Module

with-border

Statement macro

Summary

Creates the specified sheet and places a border around it.

Macro call

with-border ([options]) {pane} end

Arguments

options
Dylan argumentsbnf.

pane
A Dylan expressionbnf.

Values

None.

Library

duim-gadgets

Module

duim-gadgets

Description

Creates pane with a border around it, taking into account any of the specified options.

The options specified may be any of the legal init-keywords used to specify an instance of <border>. If no options are specified, then the default border is used.

The pane is an expression whose return value is the sheet around which a border should be placed.

Example

To create a button in a border:

contain(with-border (type: #"raised") 
           make(<button>, 
                label: "Hello") end);

See also

<border>, page 530

labelling, page 598

with-spacing, page 697


Functional Developer Library Reference: DUIM - 3 Dec 1998

Next Previous Up Top Contents Index