Difference between revisions of "ATTabs"

From Free Pascal wiki
Jump to navigationJump to search
Line 13: Line 13:
 
= How to use it like TPageControl=
 
= How to use it like TPageControl=
  
 +
Make some new panel, which will be like TPageControl. Place ATTabs on it, make Align=alTop.
 +
Now you create several Forms or Frames onto this panel (they will have Parent:=Panel1).
 +
How to switch these frames on changing tabs?
  
 
= License =
 
= License =

Revision as of 17:37, 28 March 2017

Deutsch (de) English (en) русский (ru)

About

ATTabs is a tab-control component for Delphi and Lazarus. It's not replacement for standard tab control, but is alternative one, it has different API. It paints tabs OS-indenendant, using custom drawing on canvas.

Screenshot:

ATTabs demo.png

Author: Alexey Torgashin

How to use it like TPageControl

Make some new panel, which will be like TPageControl. Place ATTabs on it, make Align=alTop. Now you create several Forms or Frames onto this panel (they will have Parent:=Panel1). How to switch these frames on changing tabs?

License

License: MPL 2.0. Also if your project needs it, you can use it under LGPL.

Download

Latest version, with demo app, is always at https://github.com/Alexey-T/ATTabs

  • Download the zip file from Github using "Download zip" button.
  • No installation into Lazarus needed, just unpack file ATTabs.pas to any folder.

Requirements

Lazarus: 1.2.0+

Tested on: Win32 (Windows 7), Linux GTK2 or QT (Ubuntu 14.04), macOS (10.8).

Usage

Component doesn't support Lazarus designer, you need to create TATTabs objects at runtime. See API documentation at "Wiki" page of Github page.