lazarus/lcl/widgetset/wsforms.pp
marc 98f5b75116 * Reimplemented ZOrder
+ Added IDE option to move a control one forward/back
* Fixed IDE control selection
- Removed some IFDEF VER 1_0
+ Added some inline

git-svn-id: trunk@7361 -
2005-07-16 00:08:26 +00:00

171 lines
5.6 KiB
ObjectPascal

{ $Id$}
{
*****************************************************************************
* WSForms.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 WSForms;
{$mode objfpc}{$H+}
interface
////////////////////////////////////////////////////
// I M P O R T A N T
////////////////////////////////////////////////////
// 1) Only class methods allowed
// 2) Class methods have to be published and virtual
// 3) To get as little as posible circles, the uses
// clause should contain only those LCL units
// needed for registration. WSxxx units are OK
// 4) To improve speed, register only classes in the
// initialization section which actually
// implement something
// 5) To enable your XXX widgetset units, look at
// the uses clause of the XXXintf.pp
////////////////////////////////////////////////////
uses
////////////////////////////////////////////////////
// To get as little as posible circles,
// uncomment only when needed for registration
////////////////////////////////////////////////////
Forms,
////////////////////////////////////////////////////
WSLCLClasses, WSControls, Controls, LCLType;
type
{ TWSScrollingWinControl }
TWSScrollingWinControlClass = class of TWSScrollingWinControl;
TWSScrollingWinControl = class(TWSWinControl)
class procedure ScrollBy(const AWinControl: TScrollingWinControl;
const DeltaX, DeltaY: integer); virtual;
end;
{ TWSScrollBox }
TWSScrollBox = class(TWSScrollingWinControl)
end;
{ TWSCustomFrame }
TWSCustomFrame = class(TWSScrollingWinControl)
end;
{ TWSFrame }
TWSFrame = class(TWSCustomFrame)
end;
{ TWSCustomForm }
TWSCustomForm = class(TWSScrollingWinControl)
class procedure CloseModal(const ACustomForm: TCustomForm); virtual;
class procedure SetBorderIcons(const AForm: TCustomForm;
const ABorderIcons: TBorderIcons); virtual;
class procedure SetFormBorderStyle(const AForm: TCustomForm;
const AFormBorderStyle: TFormBorderStyle); virtual;
class procedure SetIcon(const AForm: TCustomForm; const AIcon: HICON); virtual;
class procedure SetShowInTaskbar(const AForm: TCustomForm; const AValue: Boolean); virtual;
class procedure SetZPosition(const AWinControl: TWinControl; const APosition: TWSZPosition); virtual;
class procedure ShowModal(const ACustomForm: TCustomForm); virtual;
end;
TWSCustomFormClass = class of TWSCustomForm;
{ TWSForm }
TWSForm = class(TWSCustomForm)
end;
{ TWSHintWindow }
TWSHintWindow = class(TWSCustomForm)
end;
{ TWSScreen }
TWSScreen = class(TWSLCLComponent)
end;
{ TWSApplicationProperties }
TWSApplicationProperties = class(TWSLCLComponent)
end;
implementation
{ TWSScrollingWinControl }
procedure TWSScrollingWinControl.ScrollBy(const AWinControl: TScrollingWinControl;
const DeltaX, DeltaY: integer);
begin
end;
{ TWSCustomForm }
procedure TWSCustomForm.CloseModal(const ACustomForm: TCustomForm);
begin
end;
procedure TWSCustomForm.SetBorderIcons(const AForm: TCustomForm;
const ABorderIcons: TBorderIcons);
begin
end;
procedure TWSCustomForm.SetFormBorderStyle(const AForm: TCustomForm;
const AFormBorderStyle: TFormBorderStyle);
begin
// will be done in interface override
end;
procedure TWSCustomForm.SetIcon(const AForm: TCustomForm; const AIcon: HICON);
begin
end;
procedure TWSCustomForm.SetShowInTaskbar(const AForm: TCustomForm;
const AValue: Boolean);
begin
end;
procedure TWSCustomForm.SetZPosition(const AWinControl: TWinControl; const APosition: TWSZPosition);
begin
end;
procedure TWSCustomForm.ShowModal(const ACustomForm: TCustomForm);
begin
end;
initialization
////////////////////////////////////////////////////
// To improve speed, register only classes
// which actually implement something
////////////////////////////////////////////////////
// RegisterWSComponent(TScrollingWinControl, TWSScrollingWinControl);
// RegisterWSComponent(TScrollBox, TWSScrollBox);
// RegisterWSComponent(TCustomFrame, TWSCustomFrame);
// RegisterWSComponent(TFrame, TWSFrame);
// RegisterWSComponent(TCustomForm, TWSCustomForm);
// RegisterWSComponent(TForm, TWSForm);
// RegisterWSComponent(THintWindow, TWSHintWindow);
// RegisterWSComponent(TScreen, TWSScreen);
// RegisterWSComponent(TApplicationProperties, TWSApplicationProperties);
////////////////////////////////////////////////////
end.