Difference between revisions of "TTDINotebook"

From Free Pascal wiki
Jump to navigationJump to search
Line 2: Line 2:
  
 
== About ==
 
== About ==
* '''What is TDI''' ?
+
* A Tabbed GUI Interface  
A Tabbed GUI Interface  
+
 
[http://en.wikipedia.org/wiki/Tab_%28GUI%29 Please see how WikiPedia describe it]
+
Lazarus does not have full support for MDI interface yet, and commercial applications need to open several windows at once without ShowModal.
 +
 
 +
However, the MDI interface concept has several problems, which may confuse the novice user. A more complete study on the advantages and disadvantages of the MDI can be [http://en.wikipedia.org/wiki/Multiple_document_interface Comparison_with_single_document_interface found at wikipedia]
 +
 
 +
The intention of this component is to provide a simple way to create an TDI interface, similar to that [http://en.wikipedia.org/wiki/Tabbed_document_interface described in Wikipedia].
 +
 
 +
I used '''TExtendedNotebook''' as a base component, introducing new methods and properties to provide support for TDI. Very few changes will be needed in your code, and component '''TTDINotebook''' will handle the entire process of creation and destruction of the tabs and menus automatically.
  
 
=== Author ===
 
=== Author ===
Line 28: Line 34:
  
 
== How to Use ==
 
== How to Use ==
 +
* Drop a TTDINotebook in your Main Form
 +
* Create your child Forms as usual
  
 
== Key Features ==
 
== Key Features ==

Revision as of 15:24, 29 May 2012

Template:Translate

About

  • A Tabbed GUI Interface

Lazarus does not have full support for MDI interface yet, and commercial applications need to open several windows at once without ShowModal.

However, the MDI interface concept has several problems, which may confuse the novice user. A more complete study on the advantages and disadvantages of the MDI can be Comparison_with_single_document_interface found at wikipedia

The intention of this component is to provide a simple way to create an TDI interface, similar to that described in Wikipedia.

I used TExtendedNotebook as a base component, introducing new methods and properties to provide support for TDI. Very few changes will be needed in your code, and component TTDINotebook will handle the entire process of creation and destruction of the tabs and menus automatically.

Author

Author: Daniel Simões de Almeida

License

LGPL

Download

 On Windows you can use TortoiseSVN
 On Linux, use:  svn co https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/components/tdi

Dependencies / System Requirements

  • None

Installation

  • Download the package on a directory of your preference
  • Open Package File: tdi.lpk.
  • Install the Package and let Lazarus rebuild.

How to Use

  • Drop a TTDINotebook in your Main Form
  • Create your child Forms as usual

Key Features

Screenshot

  • tdi1.jpg


  • tdi2.jpg

Note