[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
CppClxTForm

(C++ CLX) TForm

The Component you put all others on. Without any others on it, it is an empty window. Can be found in QForms.hpp.

Multiple TForms

To have multiple (non-parent) TForms in your program, do (using default names):
  • Create an Application (called Project1 with Unit1 and Form1)
  • Create a new Form (called Unit2 and Form2)
  • Save all in the same directory under their default names
  • Select Form1
  • Select 'Project | Add to Project | Unit2.cpp'
  • Select 'File | Include Unit Hdr | Unit2'
Now you can type, e.g. under an OnClick event:
  Form2->Show();


MDI Interface

MDI is an abbreviation of Multiple Documents Interface. It is nearly the same as above to create:

To have multiple MDIChild TForms in your program, do
  • Create an Application (called Project1 with Unit1 and Form1)
  • Set Form1's FormStyle to fsMDIForm
  • Create a new Form (called Unit2 and Form2)
  • Set Form2's FormStyle to fsMDIChild
  • Save all in the same directory under their default names
  • Select Form1
  • Select 'Project | Add to Project | Unit2.cpp'
  • Select 'File | Include Unit Hdr | Unit2'
Now you can type, e.g. under an OnClick event:
  Form2->Show();


'TForm' Links



last edited (November 11, 2006) by bilderbikkel, Number of views: 1377, Current Rev: 4 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.