Difference between revisions of "TECTabCtrl"

From Lazarus wiki
Jump to navigationJump to search
Line 31: Line 31:
 
=== Examples ===
 
=== Examples ===
  
===== Basic layout =====
+
===== Example 1 =====
 +
 
 +
Basic layout.
  
 
[[File:top_1row.png]]
 
[[File:top_1row.png]]
  
===== Tabs in one row, their size exceeds width of component =====
+
===== Example 2 =====
 +
 
 +
Tabs in one row, their size exceeds width of component. Left-right buttons and optional Add button appear.
  
 
[[File:top_1row_btns.png]]
 
[[File:top_1row_btns.png]]
 +
 +
===== Example 3 =====
 +
 +
Tabs are in two rows, their size exceeds width of component. Left-right buttons and optional Add button appear.
  
 
[[File:top_2row_btns.png]]
 
[[File:top_2row_btns.png]]
 +
 +
===== Example 4 =====
 +
 +
Component is in reversed mode. Tabs are in three rows, their size exceeds width of component. Left-right buttons and optional Add button appear. Note that buttons are aligned differently when component has one/two/three or more rows.
  
 
[[File:top_3row_btns_rev.png]]
 
[[File:top_3row_btns_rev.png]]
 +
 +
===== Example 5 =====
 +
 +
Tabs are in two rows.Close button on each tab is displayed.
  
 
[[File:left_2row_close.png]]
 
[[File:left_2row_close.png]]
 +
 +
===== Example 6 =====
  
 
[[File:bttm_2row_close_fold.png]]
 
[[File:bttm_2row_close_fold.png]]
 +
 +
===== Example 7 =====
  
 
[[File:right_2row_close_fold.png]]
 
[[File:right_2row_close_fold.png]]
 +
 +
===== Example 8 =====
  
 
[[File:top_2row_r2l_breeze_enlarge.png]]
 
[[File:top_2row_r2l_breeze_enlarge.png]]

Revision as of 04:12, 26 February 2016

Overview

About

TECTabCtrl is part of Eye Candy Controls (shortly ECControls or EC-Controls), see http://wiki.freepascal.org/Eye-Candy_Controls, set of visual controls written for Lazarus. Its design is based on Themes, therefore its look is very native everywhere, no matter what widgetset you use.

Each release is announced on Lazarus Forum in section Third Party Announcements.

There are always attached files README.txt (list of all known issues) and CHANGELOG.txt (list of all changes from previous release).

License

GNU Lesser General Public License 2.0 with linking exception (a.k.a. Modified LGPL). File ectabctrl.pas contains license header. Also, files COPYING.modifiedLGPL.txt and COPYING.LGPL.txt are bundled to each archive.

Author

This component is written by Blaazen. Copyright notice and real name is mentioned in the header of the unit. You can contact author on Lazarus Forum (nickname: Blaazen) in any thread about EC-Controls. If you are logged in to forum, you can get author's e-mail or send him private message.

Download and Install

See http://wiki.freepascal.org/Eye-Candy_Controls#Install

Component

TECTabCtrl is installed to the tab EC-C on the Lazarus component palette.

tectabctrl.png

This component is advanced alternative TTabControl. It allows tab stacking, tabs in multiple rows, top/bottom/left/right orientation, reversed and right-to-left bi-directional mode, dragging tabs to move or fold them and many others.

Examples

Example 1

Basic layout.

top 1row.png

Example 2

Tabs in one row, their size exceeds width of component. Left-right buttons and optional Add button appear.

top 1row btns.png

Example 3

Tabs are in two rows, their size exceeds width of component. Left-right buttons and optional Add button appear.

top 2row btns.png

Example 4

Component is in reversed mode. Tabs are in three rows, their size exceeds width of component. Left-right buttons and optional Add button appear. Note that buttons are aligned differently when component has one/two/three or more rows.

top 3row btns rev.png

Example 5

Tabs are in two rows.Close button on each tab is displayed.

left 2row close.png

Example 6

bttm 2row close fold.png

Example 7

right 2row close fold.png

Example 8

top 2row r2l breeze enlarge.png