Reputation:

C++ Builder 2007 message dialog problem

My message dilogs seem to disppear below the main form. This only random. Most of the time it displays correctly on top, but some times disppear behind the main application form . What could be the reson?

Thanks

Upvotes: 1

Views: 304

Answers (2)

Remy Lebeau
Remy Lebeau

Reputation: 597860

Look at the TForm::PopupMode, TForm::PopupParent, and TApplication::ModalPopupMode properties. They were introduced specifically to fix Z-order problems that plaqued older versions.

Upvotes: 3

Maltrap
Maltrap

Reputation: 2630

Try using MyForm->ShowModal() instead of MyForm->Show()

Upvotes: 2

Related Questions