RAD Studio VCL Reference
|
Represents how MDI child forms are arranged when the Tile method is called.
property TileMode: TTileMode;
__property TTileMode TileMode;
TileMode can have one of the following TTileMode values:
Value |
Meaning |
tbHorizontal |
Each form stretches across the width of the parent form |
tbVertical |
Each form stretches along the height of the parent form |
TileMode is meaningful only if the form is an MDI child (that is, if the form's FormStyle property is set to fsMDIChild).
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) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|