Skip to main content

MyOverflowRectangle

Type

expression

Summary

Returns the overflow rectangle of the widget

Syntax

my overflow rectangle

Description

Use the widget's overflow rectangle property to render widget adornments or graphic effects which should not be considered part of the bounds of the widget; in other words in order to be able to draw outside of the widget's rect. The overflow rectangle can be removed by setting it to the widget's rect.

Examples

// Allow the widget to draw in a region a fixed number of pixels in any
// direction from its bounds.
public handler OnGeometryChanged()
variable tRect as Rectangle
put my rectangle into tRect

constant kBorder is 10
set my effective rectangle to [ \
the left of tRect - kBorder, \
the top of tRect - kBorder, \
the right of tRect + kBorder, \
the bottom of tRect + kBorder]
end handler
// Remove effective rectangle
set my effective rectangle to my rectangle
Thank you for your feedback!

Was this page helpful?