AnnotationOfWidget |
Type | operator |
Dictionary | LCB |
Library | LiveCode Builder |
Syntax | annotation <mName> of <mWidget>
|
Associations | com.livecode.widget |
Summary | Manipulates an annotation of a child widget
|
Example |
variable mLastChild as String
public handler OnCreate() returns nothing
variable tChildWidget as Widget
variable tCount as Number
repeat with tCount from 1 up to 10
put a new widget "com.livecode.widget.button" into tChildWidget
set annotation "Name" of tChildWidget to ("Child" && tCount formatted as string)
end repeat
end handler
public handler OnMouseEnter() returns nothing
if the target is not nothing then
put annotation "Name" of the target into mLastChild
end if
end handler
|
Related | Operator: TheTarget, MyChildren
|
Description | An annotation is a named value assigned to a widget. They do not affect any intrinsic properties of the widget are are intended
to be used to disambiguate widget objects returned from operators such as TheTarget or MyChildren.
|
Tags | widget |