{ ***************************************************************************** * Gtk3WSCheckLst.pp * * ----------------- * * * * * ***************************************************************************** ***************************************************************************** This file is part of the Lazarus Component Library (LCL) See the file COPYING.modifiedLGPL.txt, included in this distribution, for details about the license. ***************************************************************************** } unit Gtk3WSCheckLst; {$i gtk3defines.inc} {$mode objfpc}{$H+} interface uses LazGObject2, LazGtk3, LazGLib2, gtk3widgets, //////////////////////////////////////////////////// // I M P O R T A N T //////////////////////////////////////////////////// // To get as little as posible circles, // uncomment only when needed for registration //////////////////////////////////////////////////// CheckLst, StdCtrls, Controls, LCLType, SysUtils, Classes, LMessages, LCLProc, //////////////////////////////////////////////////// WSCheckLst, WSLCLClasses, WSProc; type { TGtk3WSCheckListBox } { TGtk3WSCustomCheckListBox } TGtk3WSCustomCheckListBox = class(TWSCustomCheckListBox) published class function CreateHandle(const AWinControl: TWinControl; const AParams: TCreateParams): TLCLIntfHandle; override; class function GetItemEnabled(const ACheckListBox: TCustomCheckListBox; const AIndex: integer): Boolean; override; class function GetState(const ACheckListBox: TCustomCheckListBox; const AIndex: integer): TCheckBoxState; override; class procedure SetItemEnabled(const ACheckListBox: TCustomCheckListBox; const AIndex: integer; const AEnabled: Boolean); override; class procedure SetState(const ACheckListBox: TCustomCheckListBox; const AIndex: integer; const AState: TCheckBoxState); override; end; implementation uses Gtk3WSControls, gtk3procs; { TGtk3WSCheckListBox } class function TGtk3WSCustomCheckListBox.CreateHandle( const AWinControl: TWinControl; const AParams: TCreateParams): TLCLIntfHandle; begin // DebugLn('>TGtk3WSCustomCheckListBox.CreateHandle'); Result := TLCLIntfHandle(TGtk3CheckListBox.Create(AWinControl, AParams)); // DebugLn('