Futurebasic/Language/Reference/def embedbutton

= DEF EMBEDBUTTON Statement =

Statement
✔ Appearance ✔ Standard ✔ Console

Revised
February 2002 (Release 6)

Description
The appearance manager can embed several buttons (sub controls) within a single parent button (or super control). In fact, buttons may be embedded in buttons which are in turn embedded in other buttons. The advantages are enormous. Take this example: each window has a single root control. All buttons within the window are embedded into this root control or into one of its children. When the window becomes inactive, the root control is disabled. With that single command (implemented by the FB runtime) all other controls in the window are automatically disabled.

The versatility extends to things like showing or hiding a pane in a tab control or buttons within a group.

Example
The following example creates a radio button group and embeds individual buttons into the super control. As a result, you can poll the group button to find out which of the radio sub controls is currently selected.

image d/DEF%20EMBEDBUTTON02.gif

 