MyChildren

Typeexpression
DictionaryLCB
LibraryLiveCode Builder
Syntax
my children
Associationscom.livecode.widget
Summary

The currently placed child widgets of this widget.

Example
public handler OnCreate() returns nothing
    repeat 10 times
        place a new widget "com.livecode.widget.button"
    end repeat
end handler

public handler OnGeometryChanged() returns nothing
    variable tChildren as List
    put my children into tChildren

    variable tChild as Widget
    variable tLeft as Number
    put 0 into tLeft
    -- arrange children from left to right
    repeat for each element tChild in tChildren
        set the rectangle of tChild to [tLeft, 0, tLeft + 50, my height]
        add 50 to tLeft
    end repeat
end handler
Values
NameTypeDescription
return

A list of the child widgets of this widget.

Description

The list of widget objects returned by my children is in placement (i.e. layer) order.

Tagswidget