Page 1 of 1
How to show a window in different instance?
Posted: Tue Feb 15, 2022 2:48 pm
by tad.chen
When I click Downloads icon in BriskBard, it show the Downloads window in an new instance. It has an new item in taskbar (see attached picture).
In my browser, the Downloads window is shown, but has no new item in taskbar. It's in the browser's instance.
I just wonder how to get it?
Re: How to show a window in different instance?
Posted: Wed Feb 16, 2022 8:35 am
by salvadordf
Hi,
The button with a plus sign in the download manager that is used to add a new download item calls TChromiumCore.StartDownload
Re: How to show a window in different instance?
Posted: Wed Feb 16, 2022 11:40 pm
by tad.chen
Sorry, my description isn't clear. What I want to know is about Windows programming.
When I click Downloads icon in BriskBard (picture 0), it shows the Downloads window in an new application instance. Because It has an new item in taskbar (picture 1). there're two task items, one is briskbard, the other is the downloads window.
But In Delphi, when we want to show a new form, we write the code like form2.show. It just only show the form, and will not create a new task item in the taskbar. How to show a form with an new task item?
Re: How to show a window in different instance?
Posted: Thu Feb 17, 2022 8:31 am
by salvadordf
Override TForm.CreateParams and add WS_EX_APPWINDOW to params.ExStyle.
https://stackoverflow.com/questions/8204397/what-does-ws-ex-appwindow-do
https://stackoverflow.com/questions/30809532/how-to-correctly-have-modeless-form-appear-in-taskbar
Re: How to show a window in different instance?
Posted: Sat Feb 19, 2022 2:15 am
by tad.chen
Thank you for your information.
