How to Turn Off "Always on Top"

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
MkMr
Propeller Head
Posts: 17
Joined: Tue Sep 25, 2007 7:29 am

How to Turn Off "Always on Top"

Post by MkMr »

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
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"

Post by Pete Lees »

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
MkMr
Propeller Head
Posts: 17
Joined: Tue Sep 25, 2007 7:29 am

Re: How to Turn Off "Always on Top"

Post by MkMr »

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:

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);
		}
This works well for us. Hope it helps someone else.

Mark
roland414
Jr. Propeller Head
Posts: 1
Joined: Mon Feb 14, 2011 5:42 am

Re: How to Turn Off "Always on Top"

Post by roland414 »

Thank you so much for these info.
Post Reply