mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-23 17:25:12 +02:00
148 lines
4.1 KiB
ObjectPascal
148 lines
4.1 KiB
ObjectPascal
{ $Id$}
|
|
{
|
|
*****************************************************************************
|
|
* GtkWSForms.pp *
|
|
* ------------- *
|
|
* *
|
|
* *
|
|
*****************************************************************************
|
|
|
|
*****************************************************************************
|
|
* *
|
|
* This file is part of the Lazarus Component Library (LCL) *
|
|
* *
|
|
* See the file COPYING.LCL, included in this distribution, *
|
|
* for details about the copyright. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
|
* *
|
|
*****************************************************************************
|
|
}
|
|
unit GtkWSForms;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
interface
|
|
|
|
uses
|
|
////////////////////////////////////////////////////
|
|
// I M P O R T A N T
|
|
////////////////////////////////////////////////////
|
|
// To get as little as posible circles,
|
|
// uncomment only when needed for registration
|
|
////////////////////////////////////////////////////
|
|
// Forms,
|
|
////////////////////////////////////////////////////
|
|
WSForms, WSLCLClasses;
|
|
|
|
type
|
|
|
|
{ TGtkWSScrollingWinControl }
|
|
|
|
TGtkWSScrollingWinControl = class(TWSScrollingWinControl)
|
|
private
|
|
protected
|
|
public
|
|
end;
|
|
|
|
{ TGtkWSScrollBox }
|
|
|
|
TGtkWSScrollBox = class(TWSScrollBox)
|
|
private
|
|
protected
|
|
public
|
|
end;
|
|
|
|
{ TGtkWSCustomFrame }
|
|
|
|
TGtkWSCustomFrame = class(TWSCustomFrame)
|
|
private
|
|
protected
|
|
public
|
|
end;
|
|
|
|
{ TGtkWSFrame }
|
|
|
|
TGtkWSFrame = class(TWSFrame)
|
|
private
|
|
protected
|
|
public
|
|
end;
|
|
|
|
{ TGtkWSCustomForm }
|
|
|
|
TGtkWSCustomForm = class(TWSCustomForm)
|
|
private
|
|
protected
|
|
public
|
|
class procedure SetFormBorderStyle(const AWinControl: TWinControl;
|
|
const AFormBorderStyle: TFormBorderStyle); override;
|
|
end;
|
|
|
|
{ TGtkWSForm }
|
|
|
|
TGtkWSForm = class(TWSForm)
|
|
private
|
|
protected
|
|
public
|
|
end;
|
|
|
|
{ TGtkWSHintWindow }
|
|
|
|
TGtkWSHintWindow = class(TWSHintWindow)
|
|
private
|
|
protected
|
|
public
|
|
end;
|
|
|
|
{ TGtkWSScreen }
|
|
|
|
TGtkWSScreen = class(TWSScreen)
|
|
private
|
|
protected
|
|
public
|
|
end;
|
|
|
|
{ TGtkWSApplicationProperties }
|
|
|
|
TGtkWSApplicationProperties = class(TWSApplicationProperties)
|
|
private
|
|
protected
|
|
public
|
|
end;
|
|
|
|
|
|
implementation
|
|
|
|
{ TGtkWSCustomForm }
|
|
|
|
procedure TGtkWSCustomForm.SetFormBorderStyle(const AWinControl: TWinControl;
|
|
const AFormBorderStyle: TFormBorderStyle);
|
|
begin
|
|
inherited SetFormBorderStyle(AWinControl, AFormBorderStyle);
|
|
// the form border style can only be set at creation time.
|
|
// This is Delphi compatible, so no Recreatewnd needed.
|
|
end;
|
|
|
|
initialization
|
|
|
|
////////////////////////////////////////////////////
|
|
// I M P O R T A N T
|
|
////////////////////////////////////////////////////
|
|
// To improve speed, register only classes
|
|
// which actually implement something
|
|
////////////////////////////////////////////////////
|
|
// RegisterWSComponent(TScrollingWinControl, TGtkWSScrollingWinControl);
|
|
// RegisterWSComponent(TScrollBox, TGtkWSScrollBox);
|
|
// RegisterWSComponent(TCustomFrame, TGtkWSCustomFrame);
|
|
// RegisterWSComponent(TFrame, TGtkWSFrame);
|
|
// RegisterWSComponent(TCustomForm, TGtkWSCustomForm);
|
|
// RegisterWSComponent(TForm, TGtkWSForm);
|
|
// RegisterWSComponent(THintWindow, TGtkWSHintWindow);
|
|
// RegisterWSComponent(TScreen, TGtkWSScreen);
|
|
// RegisterWSComponent(TApplicationProperties, TGtkWSApplicationProperties);
|
|
////////////////////////////////////////////////////
|
|
end.
|