[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Forms' (#lcl)

TScreen.DisableForms

Disable all forms except SkipForm.

Declaration

Source position: forms.pp line 1131

public function TScreen.DisableForms(

  SkipForm: TCustomForm;

  DisabledList: TList = Nil

):TList;

Arguments

SkipForm

  

Don't disable this form (ignored if Nil).

DisabledList

  

The list to update. If Nil, a new list is created and returned.

Function result

The list containing all disabled forms.

Description

Used to show modal forms or dialogs.

The enabled state is determined from the widget, not from LCL properties.

If DisabledList is Nil, a new list is created. Then all disabled forms are added to that list.

When the modal form returns, call EnableForms to restore all forms.

See also

TScreen.EnableForms

  

Use this method to restore all previously disabled forms.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.