I have created an ActiveX EXE in VB and I use Formativ to make calls to the various procedures and methods I have exposed in my class.
The app’s methods are called from buttons added to the email toolbar.
What I have found is that once the ActiveX call has completed my Groupwise email’s window goes behind any non-Groupwise window that may have been open.
It’s tricky to recreate but basically if I am looking at a windows explorer window then click onto a GW email to bring it to the surface, then click the button that triggers my applet (which calls the ActiveX EXE) and then cancel the app’s form I will see my GW email go behind the windows explorer. Strangely the GW email will never go behind another GW Email or the Main GW window.
I have tried adding BringWindowToTop to my VB app just before the ActiveX method exits but GW seems to ignore it.
I also tried setting the GW window topmost at the beginning of my method and then releasing it from topmost state at the end. This works in that the GW email stays on the surface but it doesn’t then have focus. Explorer does.
As far as I can see the ActiveX call itself can’t do the job. As soon as it completes the GW email loses focus.
Is it possible to make Windows API calls direct from Formativ. I suspect I could use the SetWindowPos (topmost) and SetActiveWindow to fix my problem.
- You must be logged in to reply to this topic.