BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dialog is always over main form. How?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Alexander Aliev
Guest





PostPosted: Sun Dec 21, 2003 9:14 pm    Post subject: Dialog is always over main form. How? Reply with 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
Rodolfo Frino - Macrosoft
Guest





PostPosted: Mon Dec 22, 2003 4:14 am    Post subject: Re: Dialog is always over main form. How? Reply with quote



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





PostPosted: Mon Dec 22, 2003 4:23 pm    Post subject: Re: Problem with dialogs more exactly Reply with quote



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





PostPosted: Mon Dec 22, 2003 4:28 pm    Post subject: Re: Problem with dialogs more exactly Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.