mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 17:39:22 +02:00
lcl: add lcModalWindow flag to the TLCLCapatibility enum. Windows has this flag set to 0 and other widgetsets which supports native modal forms to 1 (todo: make wince modal handling the same as on win32)
git-svn-id: trunk@18630 -
This commit is contained in:
parent
1d777bebeb
commit
366e21d328
@ -2079,7 +2079,10 @@ begin
|
|||||||
Screen.FFocusedForm := Self;
|
Screen.FFocusedForm := Self;
|
||||||
Screen.MoveFormToFocusFront(Self);
|
Screen.MoveFormToFocusFront(Self);
|
||||||
Screen.MoveFormToZFront(Self);
|
Screen.MoveFormToZFront(Self);
|
||||||
DisabledList := Screen.DisableForms(Self);
|
if WidgetSet.GetLCLCapability(lcModalWindow) = 0 then
|
||||||
|
DisabledList := Screen.DisableForms(Self)
|
||||||
|
else
|
||||||
|
DisabledList := nil;
|
||||||
ModalResult := 0;
|
ModalResult := 0;
|
||||||
|
|
||||||
try
|
try
|
||||||
|
@ -67,7 +67,8 @@ begin
|
|||||||
lcCanDrawOutsideOnPaint,
|
lcCanDrawOutsideOnPaint,
|
||||||
lcNeedMininimizeAppWithMainForm,
|
lcNeedMininimizeAppWithMainForm,
|
||||||
lcApplicationTitle,
|
lcApplicationTitle,
|
||||||
lcFormIcon:
|
lcFormIcon,
|
||||||
|
lcModalWindow:
|
||||||
Result := 1;
|
Result := 1;
|
||||||
else
|
else
|
||||||
Result := 0;
|
Result := 0;
|
||||||
|
@ -74,7 +74,8 @@ type
|
|||||||
lcNeedMininimizeAppWithMainForm,
|
lcNeedMininimizeAppWithMainForm,
|
||||||
// When main form is minimized, then minimize also app
|
// When main form is minimized, then minimize also app
|
||||||
lcApplicationTitle, // Can change application title in runtime
|
lcApplicationTitle, // Can change application title in runtime
|
||||||
lcFormIcon // Forms have icon
|
lcFormIcon, // Forms have icon
|
||||||
|
lcModalWindow
|
||||||
);
|
);
|
||||||
|
|
||||||
{ TWidgetSet }
|
{ TWidgetSet }
|
||||||
|
@ -457,6 +457,7 @@ function TWin32WidgetSet.GetLCLCapability(ACapability: TLCLCapability): PtrUInt;
|
|||||||
begin
|
begin
|
||||||
case ACapability of
|
case ACapability of
|
||||||
lcAsyncProcess: Result := 1;
|
lcAsyncProcess: Result := 1;
|
||||||
|
lcModalWindow: Result := 0;
|
||||||
else
|
else
|
||||||
Result := inherited;
|
Result := inherited;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user