Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

AlignButtonContainer

Container for buttons (TButton, TSpeedButton, TBitBtn) with alignment

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

[!IMPORTANT] Most likely, there won’t be full documentation—just no time for it, unfortunately((.

For any potential issues, please email us. ewgen.morgunov@yandex.ru

Container for buttons (TButton, TSpeedButton, TBitBtn) with alignment for Lazarus

AlignButtonContainer is a versatile container for automatic button arrangement with flexible layout settings. **Key Features:** **Multiple button type support:** SpeedButton Button BitBtn

**Flexible item arrangement:** Horizontal (left to right) Vertical (top to bottom) Alignment customization: Horizontal (left, center, right) Vertical (top, center, bottom)

**Complete size control:** Button width/height settings Spacing configuration Automatic minimum size calculation

**Special Features:** Designer visual enhancements (border, crosshair and name display) Dynamic layout adjustment on resize Simple API for adding/removing buttons Full standard control properties support

**How to Use:** Add component to form Configure parameters (sizes, spacing, alignment) Add buttons via AddButton() method Change layout direction if needed

**Code Example:**

pascal
// Add buttons
var btn1 := AlignButtonContainer1.AddButton(btButton);
var btn2 := AlignButtonContainer1.AddButton(btBitBtn);

// Change layout
AlignButtonContainer1.LayoutDirection := ldVertical;

// Configure appearance
AlignButtonContainer1.ButtonWidth := 100;
AlignButtonContainer1.Spacing := 10;