RAD Studio VCL Reference
|
Arranges MDI child forms so they overlap.
procedure Cascade;
__fastcall Cascade();
Use Cascade to arrange MDI child forms so they overlap.
Cascade works only if the form is an MDI parent form (that is, if the form's FormStyle property is fsMDIForm).
C++ Examples:
/* This example uses several forms. The first form has its FormStyle property set to fsMDIForm. The others have their FormStyle properties set to fsMDIChild and their Visible properties set to true. Add a main menu component and name one of the menu items MyCascade. This is code for the MyCascadeClick handler. When the user chooses the Cascade command, restored forms are arranged so that they overlap. DO NOT name the menu items "Cascade" as that will override the TForm method. */ void __fastcall TForm1::MyCascadeClick(TObject *Sender) { Form1->Cascade(); }
Delphi Examples:
{ This example uses several forms. The first form has its FormStyle property set to fsMDIForm. The others have their FormStyle properties set to fsMDIChild and their Visible properties set to true. Add a main menu component and name one of the menu items MyCascade. This is code for the MyCascadeClick handler. When the user chooses the Cascade command, restored forms are arranged so that they overlap. DO NOT name the menu items "Cascade" as that will override the TForm method. } procedure TForm1.MyCascadeClick(Sender: TObject); begin Form1.Cascade; end;
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|