mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-15 16:29:26 +02:00
123 lines
2.8 KiB
PHP
123 lines
2.8 KiB
PHP
{%MainUnit ../interfacebase.pp}
|
|
{ $Id$
|
|
******************************************************************************
|
|
TWidgetSet
|
|
|
|
WinApi stuff
|
|
|
|
|
|
!! Keep this alphabetical !!
|
|
******************************************************************************
|
|
|
|
*****************************************************************************
|
|
* 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.
|
|
*****************************************************************************
|
|
}
|
|
|
|
constructor TWidgetSet.Create;
|
|
begin
|
|
inherited Create;
|
|
FThemeServices := CreateThemeServices;
|
|
end;
|
|
|
|
procedure TWidgetSet.BeforeDestruction;
|
|
begin
|
|
FreeAndNil(FThemeServices); // destroy before destructor to release resources
|
|
inherited BeforeDestruction;
|
|
end;
|
|
|
|
function TWidgetSet.GetAppHandle: TLCLHandle;
|
|
begin
|
|
// DebugLn('Warning: AppHandle is not implemented for this widgetset yet');
|
|
Result := 0;
|
|
end;
|
|
|
|
procedure TWidgetSet.SetAppHandle(const AValue: TLCLHandle);
|
|
begin
|
|
// DebugLn('Warning: AppHandle is not implemented for this widgetset yet');
|
|
end;
|
|
|
|
procedure TWidgetSet.PassCmdLineOptions;
|
|
begin
|
|
end;
|
|
|
|
function TWidgetSet.CreateThemeServices: TThemeServices;
|
|
begin
|
|
Result := TThemeServices.Create;
|
|
end;
|
|
|
|
procedure TWidgetSet.AppRun(const ALoop: TApplicationMainLoop);
|
|
begin
|
|
if Assigned(ALoop) then ALoop;
|
|
end;
|
|
|
|
procedure TWidgetSet.AppSetIcon(const Small, Big: HICON);
|
|
begin
|
|
end;
|
|
|
|
procedure TWidgetSet.AppSetTitle(const ATitle: string);
|
|
begin
|
|
end;
|
|
|
|
procedure TWidgetSet.AppSetVisible(const AVisible: Boolean);
|
|
begin
|
|
end;
|
|
|
|
function TWidgetSet.AppRemoveStayOnTopFlags(const ASystemTopAlso: Boolean = False): Boolean;
|
|
begin
|
|
Result := False;
|
|
end;
|
|
|
|
function TWidgetSet.AppRestoreStayOnTopFlags(const ASystemTopAlso: Boolean = False): Boolean;
|
|
begin
|
|
Result := False;
|
|
end;
|
|
|
|
procedure TWidgetSet.AppSetMainFormOnTaskBar(const DoSet: Boolean);
|
|
begin
|
|
end;
|
|
|
|
procedure TWidgetSet.AppSetupMainForm(AMainForm: TObject); //e.g. handle widgetset specific startup info
|
|
begin
|
|
end;
|
|
|
|
function TWidgetSet.BeginMessageProcess: TLCLHandle;
|
|
begin
|
|
Result := 0;
|
|
end;
|
|
|
|
procedure TWidgetSet.EndMessageProcess(context: TLCLHandle);
|
|
begin
|
|
end;
|
|
|
|
function TWidgetSet.GetLCLCapability(ACapability: TLCLCapability): PtrUInt;
|
|
begin
|
|
case ACapability of
|
|
lcCanDrawOutsideOnPaint,
|
|
lcNeedMininimizeAppWithMainForm,
|
|
lcApplicationTitle,
|
|
lcFormIcon,
|
|
lcModalWindow,
|
|
lcReceivesLMClearCutCopyPasteReliably,
|
|
lcSendsUTF8KeyPress,
|
|
lcEmulatedMDI,
|
|
lcNativeTaskDialog,
|
|
lcAccelleratorKeys: Result := LCL_CAPABILITY_YES;
|
|
else
|
|
Result := LCL_CAPABILITY_NO;
|
|
end;
|
|
end;
|
|
|
|
procedure TWidgetSet.DCSetAntialiasing(CanvasHandle: HDC; AEnabled: Boolean);
|
|
begin
|
|
end;
|
|
|
|
procedure TWidgetSet.SetDesigning(AComponent: TComponent);
|
|
begin
|
|
|
|
end;
|
|
|