The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Performing ShellExecute as modal
Posted: 07 Jul 08 9:45 PM
|
I would like to launch a 3rd party app in modal mode from a SalesLogix form. I had hoped one of the vShow parameters would work but guess not.
Goal is to wait for an XML file to be created in the 3rd party app to be consumed by SLX after the user closes the app.
Any ideas?
|
|
|
|
Re: Performing ShellExecute as modal
Posted: 09 Jul 08 3:14 PM
|
The only way to do this is to create the 3rd party app as a .NET extension (or call it from a .Net extension). Ryan has several good articles on this site to show you how this is done. |
|
|
|
Re: Performing ShellExecute as modal
Posted: 09 Jul 08 3:22 PM
|
Hi Scott,
Sorry for chiming in late on this one. As Lloy mentioned, it will be up to some Win32Api trickery, but it certainly isn't hard to do (the article here http://www.slxdeveloper.com/page.aspx?action=viewarticle&articleid=91 does show all the right APIs to use from .NET to pull this off).
Basically, you'll do the following:
1) Use FindWindow or FindWindowEx to get the HWND of the other app 2) Use FindWindow or FindWindowEx to get the HWND of the SLX main window 3) Use SetParent, passing the HWND of the other app and the HWND of the SLX window to make SLX the parent of the other app
That is it.
Does that make sense? Let me know of any questions you have - don't get too scared off thinking this will be hard, because you'll likely be surprised at how easy it is. |
|
|
| |
|