User: alciro    User
 Original    Translate to:  Deutsch  English  Français  中文  
 

Programación en C++ Builder

 Arrays (arrays)
 Pointers
3. Example of class in c + +
8. AnsiString class methods
 C + + projects
 Packages, distribute an application without installation
 Exchange or bubble sorting
 String string.h functions

7. Methods of forms

Forms are also available components and as such methods, some are common to the rest of the components, but others are specific to the forms. This section details the most important.

7.1. In TForm

~ TForm ()

Destructor.

ArrangeIcons ()

Sort icons of all MDI child windows high in the MDI parent window.

 void __fastcall ArrangeIcons(void); 

This code When the user runs a menu item Chooses Called Window | Arrange Icons:

 void __fastcall TForm1::ArrangeIcons1Click(TObject *Sender) { Form1->ArrangeIcons(); } 

Cascade ()

Sort Cascade all MDI child windows are not minimized.

 void __fastcall Cascade(void); 

This code arranged all children of the current MDI MDI parent form in a cascade pattern When the user Cascade Chooses the menu command:

 void __fastcall TForm1::Cascade1Click(TObject *Sender) { Cascade(); } 

Next ()

Active and foregrounds the next available MDI child window list.

 void __fastcall Next(void); 

The Following code activate the next child of Form1.

 Form1->Next(); 

Previous ()

Active and foregrounds the previous MDI child available in the window list.

 void __fastcall Previous(void); 

This sample code activate the previous child of the parent window (Form1) When the user selects a menu item on a menu named Previous.

 void __fastcall TForm1::PreviousClick(TObject *Sender) { Previous(); } 

TForm ()

Constructor.

Tile ()

Mosaic organizes all MDI child windows are not minimized.

 void __fastcall Tile(void); 

This example uses three forms. The first form Has Its FormStyle property to MDIForm September. The other two properties FormStyle Have Their MDIChild September to September and Their Visible properties to True. Add a main menu component and name one of the menu items TileForms. This is code for the TileFormsClick handler:

 void __fastcall TForm1::TileFormsClick(TObject *Sender) { TileMode = tbVertical; Tile(); } 
Loading
copyright © 2007-2024  www.alciro.org  All rights reserved.         
Share |