olmy
asked on
How to open winhelp as inactive
I want my program to work so that every time dialog is displayed -> help appears next to it (they will be side by side). Only problem is that the focus is transfered to the winhelp-window, so that key shortcuts in my dialog dosent work.
Any ideas how to open winhelp and keep to focus in a main program.
Any ideas how to open winhelp and keep to focus in a main program.
Why don't you post a message to yourself right after you call WinExec, and call Application.MainForm.Bring ToFront when you get the message ?
ASKER
Have you tried it? I couldn't make it work!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I think you better reject my answer, don't think it works. But maybe I've helped you a little bit. I'll have a closer look when I have the time.
I think you even don't have to call WinHelp, you can also use HelpCommand(Help_SetWinPos , HelpWinInfo)
The problem at the moment is that I don't know how to fill in HelpWinInfo. Maybe you've to give it with the helpfile source.
Other sollution??? Use the Windows API : SetWindowPos() and use the handle of the help-form.
Hope I've helped you already a little bit. If you've found to beat the HelpWinInfo problem, please give me a sign.
Have fun,
c.u. ZifNab!
I think you even don't have to call WinHelp, you can also use HelpCommand(Help_SetWinPos
The problem at the moment is that I don't know how to fill in HelpWinInfo. Maybe you've to give it with the helpfile source.
Other sollution??? Use the Windows API : SetWindowPos() and use the handle of the help-form.
Hope I've helped you already a little bit. If you've found to beat the HelpWinInfo problem, please give me a sign.
Have fun,
c.u. ZifNab!
Hi Olmy,
Sorry, haven't found a solution.
A asked somebody and he says that when a program, online help starts, the help-window automaticaly becomes activated. You can't do anything about it.
What you can do is after activating help online, to activate your own window.
Like this :
Application.HelpContext({s omething}) ;
SetActiveWindow(Form1.Hand le);
Hopes this helps you,
Have fun,
c.u. ZifNab;
Sorry, haven't found a solution.
A asked somebody and he says that when a program, online help starts, the help-window automaticaly becomes activated. You can't do anything about it.
What you can do is after activating help online, to activate your own window.
Like this :
Application.HelpContext({s
SetActiveWindow(Form1.Hand
Hopes this helps you,
Have fun,
c.u. ZifNab;