Re: Why don't modal windows flash?
From: Rodrigo.net (eu_at_eu.com.br)
Date: 01/21/04
- Next message: Camiel Wijffels: "Re: Print Properties"
- Previous message: Rodrigo.net: "Re: Why don't modal windows flash?"
- In reply to: Rodrigo.net: "Re: Why don't modal windows flash?"
- Next in thread: Brett Watters: "Re: Why don't modal windows flash?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 21 Jan 2004 18:39:43 -0200
But... If the CreateParams in Form1 was already overrided, and the
Params.WndParent was changed to GetDesktopWindow, it won't work.
Unfortunately I have this problem.
"Rodrigo.net" <rodrigol@bigfoot.com> escreveu na mensagem
news:400e6d03@newsgroups.borland.com...
> Ok, here is a workaround:
>
> Override CreateParams like the following:
>
> procedure TForm2.CreateParams(var Params: TCreateParams);
> begin
> inherited CreateParams(Params);
> Params.WndParent := GetActiveWindow;
> end;
>
> It works fine.
>
> For MessageBoxes use MessageBox API:
>
> MessageBox(GetActiveWindow, 'something', 'something', MB_ICONINFORMATION);
>
>
- Next message: Camiel Wijffels: "Re: Print Properties"
- Previous message: Rodrigo.net: "Re: Why don't modal windows flash?"
- In reply to: Rodrigo.net: "Re: Why don't modal windows flash?"
- Next in thread: Brett Watters: "Re: Why don't modal windows flash?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
Loading