mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 01:39:25 +02:00
Compilation fix and starts TApplication.MoveFormFocusToChildren
git-svn-id: trunk@34365 -
This commit is contained in:
parent
cbb0725222
commit
cbe7d6ff5f
@ -1255,6 +1255,7 @@ type
|
|||||||
FLayoutAdjustmentPolicy: TLayoutAdjustmentPolicy;
|
FLayoutAdjustmentPolicy: TLayoutAdjustmentPolicy;
|
||||||
FMainFormOnTaskBar: Boolean;
|
FMainFormOnTaskBar: Boolean;
|
||||||
FModalLevel: Integer;
|
FModalLevel: Integer;
|
||||||
|
FMoveFormFocusToChildren: Boolean;
|
||||||
FOnGetMainFormHandle: TGetHandleEvent;
|
FOnGetMainFormHandle: TGetHandleEvent;
|
||||||
FOnMessageDialogFinished: TModalDialogFinished;
|
FOnMessageDialogFinished: TModalDialogFinished;
|
||||||
FOnModalBegin: TNotifyEvent;
|
FOnModalBegin: TNotifyEvent;
|
||||||
@ -1485,6 +1486,7 @@ type
|
|||||||
property MainFormHandle: HWND read GetMainFormHandle;
|
property MainFormHandle: HWND read GetMainFormHandle;
|
||||||
property MainFormOnTaskBar: Boolean read FMainFormOnTaskBar write SetMainFormOnTaskBar; platform;
|
property MainFormOnTaskBar: Boolean read FMainFormOnTaskBar write SetMainFormOnTaskBar; platform;
|
||||||
property ModalLevel: Integer read FModalLevel;
|
property ModalLevel: Integer read FModalLevel;
|
||||||
|
property MoveFormFocusToChildren: Boolean read FMoveFormFocusToChildren write FMoveFormFocusToChildren default True;
|
||||||
property MouseControl: TControl read FMouseControl;
|
property MouseControl: TControl read FMouseControl;
|
||||||
property TaskBarBehavior: TTaskBarBehavior read FTaskBarBehavior write SetTaskBarBehavior;
|
property TaskBarBehavior: TTaskBarBehavior read FTaskBarBehavior write SetTaskBarBehavior;
|
||||||
property OnActionExecute: TActionEvent read FOnActionExecute write FOnActionExecute;
|
property OnActionExecute: TActionEvent read FOnActionExecute write FOnActionExecute;
|
||||||
|
@ -108,6 +108,7 @@ begin
|
|||||||
FHintShortPause := DefHintShortPause;
|
FHintShortPause := DefHintShortPause;
|
||||||
FHintHidePause := DefHintHidePause;
|
FHintHidePause := DefHintHidePause;
|
||||||
FHintHidePausePerChar := DefHintHidePausePerChar;
|
FHintHidePausePerChar := DefHintHidePausePerChar;
|
||||||
|
FMoveFormFocusToChildren := True;
|
||||||
FShowHint := true;
|
FShowHint := true;
|
||||||
FShowMainForm := true;
|
FShowMainForm := true;
|
||||||
FRestoreStayOnTop := nil;
|
FRestoreStayOnTop := nil;
|
||||||
|
@ -927,7 +927,8 @@ begin
|
|||||||
FActive := AValue;
|
FActive := AValue;
|
||||||
if FActive then
|
if FActive then
|
||||||
begin
|
begin
|
||||||
if (ActiveControl = nil) and not (csDesigning in ComponentState) then
|
if (ActiveControl = nil) and (not (csDesigning in ComponentState))
|
||||||
|
and Application.MoveFormFocusToChildren then
|
||||||
ActiveControl := FindDefaultForActiveControl;
|
ActiveControl := FindDefaultForActiveControl;
|
||||||
SetWindowFocus;
|
SetWindowFocus;
|
||||||
end;
|
end;
|
||||||
|
@ -322,16 +322,18 @@ uses
|
|||||||
customdrawnprivate,
|
customdrawnprivate,
|
||||||
LCLMessageGlue;
|
LCLMessageGlue;
|
||||||
|
|
||||||
const
|
|
||||||
{$ifdef CD_Windows}
|
{$ifdef CD_Windows}
|
||||||
|
const
|
||||||
CDBackendNativeHandle = nhtWindowsHWND;
|
CDBackendNativeHandle = nhtWindowsHWND;
|
||||||
{$define CD_HasNativeFormHandle}
|
{$define CD_HasNativeFormHandle}
|
||||||
{$endif}
|
{$endif}
|
||||||
{$ifdef CD_X11}
|
{$ifdef CD_X11}
|
||||||
|
const
|
||||||
CDBackendNativeHandle = nhtX11TWindow;
|
CDBackendNativeHandle = nhtX11TWindow;
|
||||||
{$define CD_HasNativeFormHandle}
|
{$define CD_HasNativeFormHandle}
|
||||||
{$endif}
|
{$endif}
|
||||||
{$ifdef CD_Cocoa}
|
{$ifdef CD_Cocoa}
|
||||||
|
const
|
||||||
CDBackendNativeHandle = nhtCocoaNSWindow;
|
CDBackendNativeHandle = nhtCocoaNSWindow;
|
||||||
{$define CD_HasNativeFormHandle}
|
{$define CD_HasNativeFormHandle}
|
||||||
{$endif}
|
{$endif}
|
||||||
|
@ -630,6 +630,7 @@ procedure TLazCanvas.FillRect(X1, Y1, X2, Y2: Integer);
|
|||||||
begin
|
begin
|
||||||
FillRect (Rect(X1,Y1,X2,Y2));
|
FillRect (Rect(X1,Y1,X2,Y2));
|
||||||
end;
|
end;
|
||||||
|
{$endif}
|
||||||
|
|
||||||
procedure TLazCanvas.FillColor(AColor: TFPColor;
|
procedure TLazCanvas.FillColor(AColor: TFPColor;
|
||||||
AIgnoreClippingAndWindowOrg: Boolean);
|
AIgnoreClippingAndWindowOrg: Boolean);
|
||||||
@ -644,14 +645,12 @@ begin
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
for y := 0 to Height-1 do
|
for y := 0 to Height-1 do
|
||||||
for x := 0 to Width-1 do
|
for x := 0 to Width-1 do
|
||||||
SetColor(x, y, AColor);
|
SetColor(x, y, AColor);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{$endif}
|
|
||||||
|
|
||||||
procedure TLazCanvas.AssignPenData(APen: TFPCustomPen);
|
procedure TLazCanvas.AssignPenData(APen: TFPCustomPen);
|
||||||
begin
|
begin
|
||||||
if APen = nil then Exit;
|
if APen = nil then Exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user