Prev: Implementing Ctrl-C
Next: Question about file location
From: Manfred Z. on 23 Jan 2010 04:56 I have an application with a .chm help-file. But I have some questions about the behaviour of the help-window. I use a modal application window and I can start the help. The help windows appears but it is allways in foreground of my application window. I can set the input focus on my window, the help window becomes inactive but I cannot move my window over the help window. So I have to close the help window or minimize it or move it aside of my application window when I want to go on in my application. The other problem is when I minimize the help window and then open a dialog window in my application and call the help again , the help windows resize and become visible again. But when I try to set the focus on the help window, it becomes invisible again. Is this a configuration problem of the help window settings in the html help workshop? Is there any documentation aviable about the interaction between my application (vb-basic net) and the html help window. I mean not how to navigate to help topics or so, my problem is to control the behavior of the help window. Or must I manually control the help window using its process and window handle. Thanks Manfred
From: Dennis on 23 Jan 2010 07:09 Manfred: I had the same problem and solved it by creating (but not showing) a new Form in my application's Load method. Private Shared m_helpForm As Form ... m_helpForm = New Form() m_helpForm.CreateControl() And I added a method to my application's main form. Public Shared Sub RequestHelp(ByVal p_topic As String) Help.ShowHelp(m_helpForm, "myhelp.chm", HelpNavigator.Topic, p_topic) End Sub Then, whenever I need to pop up a help window I just call this method. Making this invisible form the parent of the help window solves the problem for me. If there is a better solution for this behavior I would invite someone to post it. -- Dennis *** On Sat, 23 Jan 2010 01:56:01 -0800, Manfred Z. <ManfredZ(a)discussions.microsoft.com> wrote: >I have an application with a .chm help-file. >But I have some questions about the behaviour of the help-window. > >I use a modal application window and I can start the help. >The help windows appears but it is allways in foreground of my application >window. >I can set the input focus on my window, the help window becomes inactive but >I cannot move my window over the help window. >So I have to close the help window or minimize it or move it aside of my >application window when I want to go on in my application. > >The other problem is when I minimize the help window and then open a dialog >window in my application and call the help again , the help windows resize >and become visible again. >But when I try to set the focus on the help window, it becomes invisible >again. > >Is this a configuration problem of the help window settings in the html help >workshop? >Is there any documentation aviable about the interaction between my >application (vb-basic net) and the html help window. >I mean not how to navigate to help topics or so, my problem is to control >the behavior of the help window. > >Or must I manually control the help window using its process and window >handle.
From: Dennis on 23 Jan 2010 07:19 Just to add... You also may need to add handlers for Me.HelpButtonClicked and MyBase.HelpRequested. -- Dennis *** On Sat, 23 Jan 2010 07:09:27 -0500, Dennis <nobody(a)nowhere.invalid> wrote: >Manfred: > >I had the same problem and solved it by creating (but not showing) a new >Form in my application's Load method. > > Private Shared m_helpForm As Form > ... > m_helpForm = New Form() > m_helpForm.CreateControl() > >And I added a method to my application's main form. > >Public Shared Sub RequestHelp(ByVal p_topic As String) > Help.ShowHelp(m_helpForm, "myhelp.chm", HelpNavigator.Topic, p_topic) >End Sub > >Then, whenever I need to pop up a help window I just call this method. > >Making this invisible form the parent of the help window solves the >problem for me. > >If there is a better solution for this behavior I would invite someone >to post it. > >-- > >Dennis > >*** > >On Sat, 23 Jan 2010 01:56:01 -0800, Manfred Z. ><ManfredZ(a)discussions.microsoft.com> wrote: > >>I have an application with a .chm help-file. >>But I have some questions about the behaviour of the help-window. >> >>I use a modal application window and I can start the help. >>The help windows appears but it is allways in foreground of my application >>window. >>I can set the input focus on my window, the help window becomes inactive but >>I cannot move my window over the help window. >>So I have to close the help window or minimize it or move it aside of my >>application window when I want to go on in my application. >> >>The other problem is when I minimize the help window and then open a dialog >>window in my application and call the help again , the help windows resize >>and become visible again. >>But when I try to set the focus on the help window, it becomes invisible >>again. >> >>Is this a configuration problem of the help window settings in the html help >>workshop? >>Is there any documentation aviable about the interaction between my >>application (vb-basic net) and the html help window. >>I mean not how to navigate to help topics or so, my problem is to control >>the behavior of the help window. >> >>Or must I manually control the help window using its process and window >>handle.
|
Pages: 1 Prev: Implementing Ctrl-C Next: Question about file location |