Guys. I put the Demo file I sent Frank at www.byerley.net/MessageBoxFunc.rmd . It has all the variables and comments to make sense to you in the file.
Dennis, the MessageBox Function is the same msgbox function / sub as used in VB, except the wrapper used has a null value passed for the hwnd argument, so it has one less parameter in VB or VBScript. First, Just run the file, then trace throug it and see what's what. After you are familiar with it, you would probably want to put it in a Stored Procedure to BlackBox it for you own use. ----- Original Message ----- From: "Javier Valencia" <[email protected]> To: "RBASE-L Mailing List" <[email protected]> Sent: Tuesday, August 23, 2011 2:42 PM Subject: [RBASE-L] - Re: Disappearing Dialog : Would it be possible to share the solution with the List? I am sure many of : us would be interested. : : Javier, : : Javier Valencia, PE : O: 913-829-0888 : H: 913-397-9605 : C: 913-915-3137 : : My Pleasure.. Now you see DLCall is not so daunting and can substantially : upgrade your RBase toolset... ;-) : : : ----- Original Message ----- : From: "Frank Taylor" <[email protected]> : To: "RBASE-L Mailing List" <[email protected]> : Sent: Tuesday, August 23, 2011 11:41 AM : Subject: [RBASE-L] - Re: Disappearing Dialog : : : Mike, : : Perfect, thanks for the help on and off list.. I got it to work and stay on : top !! : : -- 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] : : : -----Original Message----- : From: [email protected] [mailto:[email protected]] On Behalf Of Mike Byerley : Sent: Monday, August 22, 2011 1:25 PM : To: RBASE-L Mailing List : Subject: [RBASE-L] - Re: Disappearing Dialog : : 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] : :

