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:
paul 2009-02-10 15:06:14 +00:00
parent 1d777bebeb
commit 366e21d328
4 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -67,7 +67,8 @@ begin
lcCanDrawOutsideOnPaint, lcCanDrawOutsideOnPaint,
lcNeedMininimizeAppWithMainForm, lcNeedMininimizeAppWithMainForm,
lcApplicationTitle, lcApplicationTitle,
lcFormIcon: lcFormIcon,
lcModalWindow:
Result := 1; Result := 1;
else else
Result := 0; Result := 0;

View File

@ -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 }

View File

@ -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;