Home » Developer & Programmer » Forms » How to hide dialog window?
icon5.gif  How to hide dialog window? [message #252198] Wed, 18 July 2007 02:14 Go to next message
azamkhan
Messages: 557
Registered: August 2005
Senior Member
Hi,

I m using Form 6i with Oracle 9i on Windows Xp. I have created a form in which I have desinged a wait window of dialog Style. The purpose of this wait window is to be displayed on screen when Form start performing some background processing just to let user know that system is processing your request.

The window is perfectly showing and hiding on request. But problem arises when you move your focus to any other application and when you return back to your form screen the window still showing.

What I think is that it is focus problem. If you click on any other opened application and try to send your focus back to form then this problem occure. Otherwise my code is fine.

Now you cann't say to the user not to open or send your focus on any other window or application while the wait window is displayed Cool

Regards,
Azo Khan
Re: How to hide dialog window? [message #252550 is a reply to message #252198] Thu, 19 July 2007 02:53 Go to previous messageGo to next message
zameersait
Messages: 16
Registered: July 2007
Junior Member
MR Khan,

Looks as if the code needs to be reviewed to see how you are closing the window if u r not switiching the focus.

Zame
Re: How to hide dialog window? [message #252555 is a reply to message #252550] Thu, 19 July 2007 02:58 Go to previous messageGo to next message
azamkhan
Messages: 557
Registered: August 2005
Senior Member
My code is working fine if I dont switiching the focus during Form processing but If my wait window is displaying and I switch to another application or another OS window then when I switch back to FORMs window the Wait Windows doesn't hide
Re: How to hide dialog window? [message #253171 is a reply to message #252555] Mon, 23 July 2007 01:01 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Correct, the 'wait' window is the active window and will only 'go away' when you form code tells it to 'go away'.

What do you want the form to do?

David
Re: How to hide dialog window? [message #253195 is a reply to message #253171] Mon, 23 July 2007 01:51 Go to previous messageGo to next message
azamkhan
Messages: 557
Registered: August 2005
Senior Member
What I want to do is that my Forms perform some processing during this time I want my user to be informed that your system is busy in some processing work, so I have designed a dialog window that appears when my forms start processing and hides when this processing is finished.

My code is working fine. The dialog window is appearing when my form starts its processing and hides when the processing is finished.

The problem is that during this processing when the dialog window is also showing if I switch my focus to another window or application and retrun back to my forms window again after a while the dialog window dont hide.

It seems to me that this is forms behaviour that if your focus is not on your forms then the dialog window (active window) will not hide.
Re: How to hide dialog window? [message #253201 is a reply to message #253195] Mon, 23 July 2007 02:07 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
You say
and retrun back to my forms window again after a while the dialog window dont hide.

Please clarify whether the background process has finished by the time the user returns to their Form.

David
Re: How to hide dialog window? [message #253202 is a reply to message #253201] Mon, 23 July 2007 02:14 Go to previous messageGo to next message
azamkhan
Messages: 557
Registered: August 2005
Senior Member
Yes the background process is finished.

Ok you can also test it by your self, just do this simple programming for creating my scenario. Just make a form that display a dialog window and use a timer to hide it after a few seconds. Run it. It will perfectly run showing and hiding your dialog window.

Now do this run your test form again. This time when the window is still showing try to navigate to your desktop or to any other application and then return back to form, you will find that your timer was expired and the HIDE_Window was also issued but the dialog window is still visible.
Re: How to hide dialog window? [message #254930 is a reply to message #253202] Mon, 30 July 2007 01:50 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Have you solved your problem?

I suggest that you move the focus to an item that is not on the 'dialog' window when the timer expires.

David
Previous Topic: how can save record from control block
Next Topic: Global Variables
Goto Forum:
  


Current Time: Thu Feb 13 04:46:06 CST 2025