Measure widget according to desired width and height constraints. (Step 1 of two phase layout).
Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout).
make one of children (with specified ID) visible, for the rest, set visibility to otherChildrenVisibility
Panel - either path segment buttons or text editor line