TControl.SendToBack

From OpenEUO
Jump to: navigation, search
ME SendToBack()

Puts a windowed control behind all other windowed controls, or puts a non-windowed control behind all other non-windowed controls.

Use SendToBack to change the order of overlapping controls or forms. The order in which controls stack on top of each other (Z order) depends on the order the controls are placed on the form. Call the SendToBack method for the top object to move it below the other object. The stacking order of two windowed controls is the same as the stacking of two non-windowed controls, but the two cannot be mingled. For example, if you put a memo, a windowed control, on a form, and then put a label, a non-windowed control, on top of it, the label disappears behind the memo and calling the memo's SendToBack method does nothing, the label remains behind the memo. If the control has the input focus when the SendToBack method executes, it loses the input focus.