Sign in Join
FPDoc Onlineexperiment

TWinControl.UpdateShowing procedure

Member of TWinControlprotectedIn unit Controls

Updates the Showing property with the visibility for the control, its Parents, and its child controls.

Declaration

pascal
procedure UpdateShowing; virtual

Description

UpdateShowing is a method used to determine the visibility for the Handle in the control. It calls HandleObjectShouldBeVisible to check the handle state and visibility for both the control and each of its Parent controls. If the control should be showing and Handle has not already been allocated, CreateHandle is called.

When child controls exist in the Controls property, they are visited to call the UpdatingShowing method for each of the TWinControl instances.

If an auto-sizing request is not active, a CM_SHOWINGCHANGED message is performed to apply the new visibility for the control(s). The Showing property is updated prior to exiting from the method.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.