When I launch our HTML help file from our application the help window is always on top of the main application window. I'm wonder what setting I use to turn this off. This is so when someone clicks the application window in the task bar the help file doesn't pop up in front of it.
I don't have "Use Topmost Window Style" checked in the HTML Help Setup tab of the skin properties but it doesn't matter.
Thanks for any help,
Mark
How to Turn Off "Always on Top"
-
Pete Lees
- Sr. Propeller Head
- Posts: 150
- Joined: Thu Feb 09, 2006 12:33 pm
- Location: Bracknell, Berkshire, UK
Re: How to Turn Off "Always on Top"
Hi, Mark,
I believe the solution to this issue lies in the hands of the application developer with whom you're working. See this thread:
http://forums.madcapsoftware.com/viewto ... 101#p29806
Pete
I believe the solution to this issue lies in the hands of the application developer with whom you're working. See this thread:
http://forums.madcapsoftware.com/viewto ... 101#p29806
Pete
Re: How to Turn Off "Always on Top"
Ahhh... thanks for the help, Pete.
We are using C# so we used System.Windows.Forms.Help.ShowHelp(null, ...) to launch the help. Passing null to this function, beneath the hood, always uses the launching app window handle (even though we were passing null).
Here's what I did to get around this - basically use a dummy window that you don't make visible:
This works well for us. Hope it helps someone else.
Mark
We are using C# so we used System.Windows.Forms.Help.ShowHelp(null, ...) to launch the help. Passing null to this function, beneath the hood, always uses the launching app window handle (even though we were passing null).
Here's what I did to get around this - basically use a dummy window that you don't make visible:
Code: Select all
static private Form dummyHelpWindowParent;
static public void DoUserGuide(hkClassEnum sel)
{
String topicTitle = "UI.htm";
// If we know what the selection's class is, get its topic title
if (sel != hkClassEnum.None)
topicTitle = GetChmTitleFromClassType(sel);
// Get the path to the chm
String path = hkDirectoryUtils.GetAppPath() + "help.chm";
// Launch the help using a dummy window since the normal ShowHelp(null, ... ) call always uses the launched app window (not the null passed)
if (dummyHelpWindowParent == null)
dummyHelpWindowParent = new Form();
System.Windows.Forms.Help.ShowHelp(dummyHelpWindowParent, path, System.Windows.Forms.HelpNavigator.Topic, topicTitle);
}
Mark