wx.IEHtmlWindow focus problem?

Hi, All:
     I have a question about the focus problem?
     Because I searched all the posts, and I didn't find any good
solution to solve the wx.IEHtemlwindow focus problems.
     in my application, the frame is split into two windows, one
contains a panel, the other contains the wx.IEHtmlWindow. when I click
the IEHtmlwindow, then no matter how I click the other panel, it
always focus in the IEHtmlWindow.
     then I add one method to the panel, that if I click the panel,
wx.IEHtmlWindow.Disable() which disable the IEHtmlWindow, it works.
But I would like to enable the wx.IEHtmlWindow by clicking the
wx.IEHtmlWindow, how could I do that?
     I add the code:

       self.Bind(wx.EVT_LEFT_DWON, self.clickwindows, wx.IEHtmlWindow)
     def clickwindows(self, event):
          wx.IEHtmlWindow.Enable()

but it doesn't work!

Any idea?
Thank you very much!

Please make a small runnable sample that demonstrates the problem. MakingSampleApps - wxPyWiki

···

On 3/16/10 10:39 PM, zhengqing wrote:

Hi, All:
      I have a question about the focus problem?
      Because I searched all the posts, and I didn't find any good
solution to solve the wx.IEHtemlwindow focus problems.
      in my application, the frame is split into two windows, one
contains a panel, the other contains the wx.IEHtmlWindow. when I click
the IEHtmlwindow, then no matter how I click the other panel, it
always focus in the IEHtmlWindow.
      then I add one method to the panel, that if I click the panel,
wx.IEHtmlWindow.Disable() which disable the IEHtmlWindow, it works.
But I would like to enable the wx.IEHtmlWindow by clicking the
wx.IEHtmlWindow, how could I do that?
      I add the code:

        self.Bind(wx.EVT_LEFT_DWON, self.clickwindows, wx.IEHtmlWindow)
      def clickwindows(self, event):
           wx.IEHtmlWindow.Enable()

but it doesn't work!

--
Robin Dunn
Software Craftsman