[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Problems with DialogBox (ShowModel)

Posted on 1997-10-03
3
Medium Priority
?
222 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 60 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

873 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