RAD Studio VCL Reference
|
Arranges MDI child forms so that they are all the same size.
procedure Tile;
__fastcall Tile();
Use Tile to arrange MDI child forms so that they are all the same size. Tiled forms completely fill up the client area of the parent form. How the forms arrange themselves depends upon the values of their TileMode properties.
Tile 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 three forms. The first form has its FormStyle property set to MDIForm. The other two have their FormStyle properties set to MDIChild and their Visible properties set to true. Add a main menu component and name one of the menu items TileForms. This is code for the TileFormsClick handler. When the user chooses the TileForms command, the child forms tile vertically within the MDI frame form. */ void __fastcall TForm1::TileFormsClick(TObject *Sender) { TileMode = tbVertical; Tile(); }
Delphi Examples:
{ This example uses three forms. The first form has its FormStyle property set to MDIForm. The other two have their FormStyle properties set to MDIChild and their Visible properties set to true. Add a main menu component and name one of the menu items TileForms. This is code for the TileFormsClick handler. When the user chooses the TileForms command, the child forms tile vertically within the MDI frame form. } procedure TForm1.TileFormsClick(Sender: TObject); begin TileMode := tbVertical; Tile; end;
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|