Skip to main content

OnGeometryChanged

Type

message

Summary

Sent when the widget geometry changed.

Syntax

OnGeometryChanged

Description

Handle the OnGeometryChanged message to perform specific actions that depend on the geometry of the widget, for example the locations on the canvas where parts of the widget are drawn.

Examples

private variable mLabel as String

public handler OnGeometryChanged()
if my width is not my height then
put "Rectangle" into mLabel
else
put "Square" into mLabel
end if
redraw all
end handler
Thank you for your feedback!

Was this page helpful?