| View previous topic :: View next topic |
| Author |
Message |
Alexander Aliev Guest
|
Posted: Sun Dec 21, 2003 9:14 pm Post subject: Dialog is always over main form. How? |
|
|
Hi,
after moving from BCB5 to BCB6 many dialogs are drawn
not over main form. More exactly: when they appear I see
a dialog over the main window, but if I switch with Alt-Tab to
another application and then return - I see only the dialog.
Main form appears only after my closing the dialog.
Earlier in such situation I have assigned owner of my dialog
in CreateParams():
....
Params.WndParent = MainWindow->Handle;
....
but now it does not work.
Could anybody advise something?
Thank you for any help.
Alexander
|
|
| Back to top |
|
 |
Rodolfo Frino - Macrosoft Guest
|
Posted: Mon Dec 22, 2003 4:14 am Post subject: Re: Dialog is always over main form. How? |
|
|
Have a look at this article
http://www.geocities.com/rodolfofrino/SetMainWindowAsTopmost.html
that I hope it helps
Rodolfo
"Alexander Aliev" <ali (AT) isa (DOT) ru> wrote
| Quote: | Hi,
after moving from BCB5 to BCB6 many dialogs are drawn
not over main form. More exactly: when they appear I see
a dialog over the main window, but if I switch with Alt-Tab to
another application and then return - I see only the dialog.
Main form appears only after my closing the dialog.
Earlier in such situation I have assigned owner of my dialog
in CreateParams():
...
Params.WndParent = MainWindow->Handle;
...
but now it does not work.
Could anybody advise something?
Thank you for any help.
Alexander
|
|
|
| Back to top |
|
 |
Alexander Aliev Guest
|
Posted: Mon Dec 22, 2003 4:23 pm Post subject: Re: Problem with dialogs more exactly |
|
|
Rodolfo,
I have read your article. Unfortunately, it is not what I need.
Now (after some experiments) I can describe my problem more exactly.
After moving to BCB6 from BCB5 all (!) my modal dialogs behave badly:
if after their appearing on screen I switch (Alt-Tab) to another application
(for example, maximized Word) and back again I see only dialog and
not main form under it. Main form appears only after closing a dialog.
This behavior is repeated every second appearing of a dialog (something
magic for me): one time I see main form, next time - don't (at the same
run).
The only exclusion is Application->MessageBox: it behaves badly in all
cases.
I tried simple application with modal dialog and Application->MessageBox.
Everything works Ok.
Would you (or anybody else) say what is the difference between BCB5
and BCB6 which may cause such results? And what can be my mistake?
Thank you for your help.
Alexander.
|
|
| Back to top |
|
 |
Rodolfo Frino - Macrosoft Guest
|
Posted: Mon Dec 22, 2003 4:28 pm Post subject: Re: Problem with dialogs more exactly |
|
|
I don't know Alexander, I have never seen that behaviour, I use Builder 5.
Sorry I cannot help you this time.
"Operating System: Bunch of software that makes your life easier by making
your system more difficult to understand". Rodolfo, 2003
|
|
| Back to top |
|
 |
|