TileMode (C++)

From RAD Studio Code Examples
Jump to: navigation, search


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 you choose the TileForms command, the child forms tile vertically within the MDI frame form.


void __fastcall TForm1::TileFormsClick(TObject *Sender)
  TileMode = tbVertical;