Table of Contents

SGJ Controls

Visual Controls for Delphi and Lazarus

GitHub: https://github.com/sgjps/SGJ_Controls

Web: https://www.sgjps.com/en/projects/sgj_controls

TSGJButton

Button with color styling and images display.

On Lazarus it uses bgrabitmap.

On Delphi it uses Direct2D on supported Delphi and Windows version and Canvas on older versions.

Property:

TSGJToogleButton

Toogle button, modern checkbox replacement.

Default compile configuration

{$IFDEF FPC}                       //Lazarus / FPC
  {$DEFINE SGJCTRL_W_BGRA}         //BGRABitmap draw only
//{$DEFINE SGJCTRL_W_Canvas}       //Canvas draw only
//{$DEFINE SGJCTRL_W_GDIPlUS}      //GDI PLUS draw only(and only on Windows)
{$ELSE}                            //Delphi:
//{$DEFINE SGJCTRL_W_Canvas}       //Canvas draw only
{$IF CompilerVersion >= 21}
	{$DEFINE SGJCTRL_W_D2D}    //Direct2D
{$IFEND}
  {$DEFINE SGJCTRL_W_GDIPlUS}      //GDI PLUS
{$ENDIF}

On Delphi Direct2D is switched to Canvas if not supported. If enable Direct2D with GDI+, then switched D2D to GDI+ when not supported.

Property:
ButtonColor             :TColor
ButtonCheckedColor      :TColor
ButtonUnCheckedColor    :TColor
Caption                 :String
TextBeforeButton        :Boolean
Checked                 :Boolean

TSGJLinkLabel

Label component with URL property. URL adress is executed with default system application when click. No additional code needed.

TSGJPanel

Panel component with customized border. Property:

Demo preview