hello,
to handle different html documents and/or different OS's,
I want to make iewin.IEHtmlWindows and html.HtmlWindow that overlaps,
and while running my code, use the most appropriate one.
( I also want to use wxp-widgets and CSS translations)
I think I saw the code (shown below) somewhere,
and it seems to work.
- Put both controls in a boxsizer
- make one visible and the other invisible
- call Layout
Is this a good solution,
or are there better ones ?
thanks,
Stef Mientki
=== creation ===
self.Html=iewin.IEHtmlWindow( self,style = wx.NO_FULL_REPAINT_ON_RESIZE)
self.Html2=wx.html.HtmlWindow( self,style = wx.NO_FULL_REPAINT_ON_RESIZE)
self.Sizer = wx.BoxSizer ( )
self.Sizer.Add ( self.Html, 1, wx.EXPAND )
self.Sizer.Add ( self.Html2, 1, wx.EXPAND )
self.SetSizer ( self.Sizer )
=== loading a page ===
self.Html.Show()
self.Html2.Hide()
self.Sizer.Layout ( )
self.Html.LoadUrl ( ‘http://mathworld.wolfram.com/’ )