htmlhelpcontroller on top?

Phillip Watts wrote:

They also have help.

Is there a way to force the htmlhelpcontroller dialog to be
on top? the object doesn't have Raise().
Thanks
  

I think what you want is to call the dialog's ShowModal() method rather than Show().
    

I'm not sure its based on Dialog. Anyway, I don't know how to
use ShowModal.

import wx import wx.html

class doc:
    def __init__(s,page=''):
        s.help = wx.html.HtmlHelpController()
        s.help.AddBook('doc/pipos.hpp')
        if page: s.display(page)

    def display(s,page):
        s.help.Display(page)
        s.help.ShowModal()

File "/home/phil/pos/piposdoc.py", line 13, in display
    s.help.ShowModal()
AttributeError: 'HtmlHelpController' object has no attribute 'ShowModal'

Hmmm...in doing some research, I stumbled across this thread:

http://lists.wxwidgets.org/pipermail/wxpython-mac/2007-May/002281.html

In it, Robin seems to say that it is neither a frame nor a dialog, but a controller or wrapper around a frame. Thus, I am not sure what to tell you. Hopefully Robin will weigh in soon with his nigh infinite wisdom regarding wx.

Mike

Mike Driscoll wrote:

Hmmm...in doing some research, I stumbled across this thread:

http://lists.wxwidgets.org/pipermail/wxpython-mac/2007-May/002281.html

In it, Robin seems to say that it is neither a frame nor a dialog, but a controller or wrapper around a frame. Thus, I am not sure what to tell you. Hopefully Robin will weigh in soon with his nigh infinite wisdom regarding wx.

The help controller has a GetFame method that will let you get access to and manipulate the frame that it creates, although by the time it is created it is probably too late to try and specify the wx.STAY_ON_TOP style, but you can call Raise on it. That probably won't help however if you're trying to raise it above other frames that do have the wx.STAY_ON_TOP style. Does it make a difference if you pass your current wx.STAY_ON_TOP frame to be used as the parent of the help frame?

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!