By the way, the reply that he got appears to come from the Borland
newsgroups.

You  should be able to find them on your ISP's server with names starting
with borland

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Robert Martin
> Sent: Tuesday, 16 October 2001 11:11
> To: Multiple recipients of list delphi
> Subject: Re: [DUG]: Really simple question
>
>
> .. on behalf of Simon
>
> I have used the first solution below to implement multiple windows with
> their own taskbar tabs within one application. The problem I have is that
> when any of the child windows with their own tabs display a modal form (or
> dialog), the child window itself hides while the modal form is
> showing. How
> do I get around this?
>
>
> ----- Original Message -----
> From: "Edward Aretino" <[EMAIL PROTECTED]>
> To: "Multiple recipients of list delphi" <[EMAIL PROTECTED]>
> Sent: Monday, September 24, 2001 6:21 PM
> Subject: Re: [DUG]: Really simple question
>
>
> > Simple, but not exactly intuitive (btw, I use the second method)..
> >
> >  From Peter Below :
> > -----------------------------------------------------------------
> >
> >
> > If you want to have a separate taskbar button for each secondary window
> you
> > have two options:
> >
> > 1. override the CreateParams method of each secondary form and add the
> > WS_EX_APPWINDOW style:
> >
> > procedure TForm2.CreateParams(Var params: TCreateParams);
> >    begin
> >      inherited CreateParams( params );
> >      params.ExStyle := params.ExStyle or WS_EX_APPWINDOW;
> >    end;
> >
> > If you click on a secondary forms taskbar button while another app is
> > active this will still bring all the applications forms to front. If you
> do
> > not want that there is option
> >
> > 2. reparent the secondary forms to the desktop
> >
> > procedure TForm2.CreateParams(Var params: TCreateParams);
> >    begin
> >      inherited CreateParams( params );
> >      params.ExStyle := params.ExStyle or WS_EX_APPWINDOW;
> >      params.WndParent := GetDesktopwindow;
> >    end;
> >
> > Note that this can cause some problems with modal forms shown from
> > secondary forms. If the user switches away from the app while a
> modal form
> > is up and then back to the form that showed it the modal form may hide
> > beneath the form. It is possible to deal with this by making sure the
> modal
> > form is parented to the form that showed it (using params.WndParent as
> > above) but this is not possible with the standard dialogs from
> the Dialogs
> > unit and exceptions, which need more effort to get them to work right
> > (basically handling Application.OnActivate, looking for modal forms
> > parented to Application via GetLastActivepopup and bringing them to the
> top
> > of the Z-order via SetWindowPos).
> >
> > Peter Below (TeamB)
> >
> >
> >
> >
> > At 15:04 24/09/2001 +1200, you wrote:
> > >Hi Im sure this is a really simple question but I just cant remember...
> > >
> > >How do you set a new form (non modal) to have its own entry on the
> taskbar?
> > >
> > >TIA
> > >
> > >Robert Martin
> > >Software Engineer
> > >Wild Software Ltd
> >
> >
> --------------------------------------------------------------------------
> -
> >     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> > To UnSub, send email to: [EMAIL PROTECTED]
> > with body of "unsubscribe delphi"
> > Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
> >
>
>
> ------------------------------------------------------------------
> ---------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
> Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
>

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to