Solved

Problems with DialogBox (ShowModel)

Posted on 1997-10-03
3
202 Views
Last Modified: 2010-04-04
I have a dialogbox which is displayed by the MainForm. And in a second thread I set the ShowModel.Result to mrOk. The dialogbox should disapeare now. But it wont. I have to move the mouse cursor first befor the dialogbox disapers.

How can I get rid of this effect?
Points will be increased depending on your answer.

Regards Ian
0
Comment
Question by:e4monsch
3 Comments
 
LVL 3

Expert Comment

by:mirek071497
ID: 1346796
If you set ModalResult to mrOK the dialog box disapeare and this is ok. Can't you move cursor before setting ModalResult ? I can't understand what you need.
0
 
LVL 2

Author Comment

by:e4monsch
ID: 1346797
The problem is that the dialog box does not disapere by it self, when I set the ModalResult to mrOK. I have to move the mouse cursor (after setting mrOK) to help the dialog box to disapere.

Do you know what I mean?
0
 

Accepted Solution

by:
Dippen earned 30 total points
ID: 1346798
Hi!

I haven't been able to reconstruct your problem, but you could try to update the form in question:

  ModalResult := mrOK;
  Modalform.Update;    <--- The form that won't disappear

  or try to update the Mainform:

  Mainform.Update;

As I said, I haven't been able to reconstruct your problem, so my theory is not actually tested.

//Dippen


0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now