Frank,
  You could use the Win32 MessageBox function:

  http://msdn.microsoft.com/en-us/library/ms645505%28v=VS.85%29.aspx

  If you use the GetProperty  command to get the HANDLE of the form you want 
the message box to stay on top of and pass it to the MessageBox function, it 
will be modal to that form.

If you look at the parameter information of the function, you can see that 
you can specify one, two, or three buttons and capture the result in an 
RBase Integer.  It is not as daunting as it looks to use it with the DLCall 
function.




----- Original Message ----- 
From: "Frank Taylor" <[email protected]>
To: "RBASE-L Mailing List" <[email protected]>
Sent: Monday, August 22, 2011 11:00 AM
Subject: [RBASE-L] - Disappearing Dialog


I am having an issue with one of my scanning forms that has a button that 
the user will click on and then a Dialog box comes up telling the user to 
hit continue when scan is done or cancel.  While the dialog form is up if 
the user clicks on something else, like email or will open a document, when 
they click back on RBase, 50% of the time the Dialog goes behind the form. 
I have instructed them to hit Alt-Tab, Alt-Tab to get the dialog to the 
front of the screen, but if they do not know the dialog is there they will 
start clicking on the form, which causes it to not respond and crash the 
application.

Does anyone have any input on this or a different way of doing what I need 
without having dialogs getting lost ?

I just tried this on V9.1.4.10822 and it would still go behind the form 
randomly when I launched another program.

-- Frank

Frank Taylor - Information Technology Administrator
F.J. O'Hara & Sons, Inc - Araho Transfer Inc.
Boston, MA - Rockland, ME - Miami, FL
Direct Dial - 617-790-3093
email: [email protected]


Reply via email to