how to really reload IEHtmlWindow?

hello,

for a css editor, where IEHtmlWindowis used as the resulting viewer,
I need to see the changes made in the css file,
so i need to reload the page, but didn't succeed.

I tried Refresh ( par), with par in range 0 ..3, no effect
I tried Destroy() and recreate the IEHtmlWindow, but the old window never gets destroyed.

Any suggestions ?

thanks,
Stef Mientki

for the record, I found a solution:

      self.Html.LoadUrl ( URL, 4 ) # flags = 4 = NoReadCache

cheers,
Stef

···

On 15-10-2010 00:09, Stef Mientki wrote:

hello,

for a css editor, where IEHtmlWindowis used as the resulting viewer,
I need to see the changes made in the css file,
so i need to reload the page, but didn't succeed.

I tried Refresh ( par), with par in range 0 ..3, no effect
I tried Destroy() and recreate the IEHtmlWindow, but the old window never gets destroyed.

Any suggestions ?

thanks,
Stef Mientki

Using Refresh might have just used the method inherited from wx.Window. In wx.lib.iewin I added a RefreshPage method that calls the ActiveX control's Refresh2 method.

     def RefreshPage(self, Level=REFRESH_NORMAL):
         return self.ctrl.Refresh2(Level)

···

On 10/15/10 10:33 AM, Stef Mientki wrote:

  On 15-10-2010 00:09, Stef Mientki wrote:

  hello,

for a css editor, where IEHtmlWindowis used as the resulting viewer,
I need to see the changes made in the css file,
so i need to reload the page, but didn't succeed.

I tried Refresh ( par), with par in range 0 ..3, no effect
I tried Destroy() and recreate the IEHtmlWindow, but the old window never gets destroyed.

Any suggestions ?

thanks,
Stef Mientki

for the record, I found a solution:

       self.Html.LoadUrl ( URL, 4 ) # flags = 4 = NoReadCache

--
Robin Dunn
Software Craftsman

I just tried that,
but even with the highest level REFRESH_COMPLETELY,
it doesn't reload the css-file.

cheers,
Stef

···

On 15-10-2010 20:15, Robin Dunn wrote:

On 10/15/10 10:33 AM, Stef Mientki wrote:

  On 15-10-2010 00:09, Stef Mientki wrote:

  hello,

for a css editor, where IEHtmlWindowis used as the resulting viewer,
I need to see the changes made in the css file,
so i need to reload the page, but didn't succeed.

I tried Refresh ( par), with par in range 0 ..3, no effect
I tried Destroy() and recreate the IEHtmlWindow, but the old window never gets destroyed.

Any suggestions ?

thanks,
Stef Mientki

for the record, I found a solution:

       self.Html.LoadUrl ( URL, 4 ) # flags = 4 = NoReadCache

Using Refresh might have just used the method inherited from wx.Window. In wx.lib.iewin I added a
RefreshPage method that calls the ActiveX control's Refresh2 method.

    def RefreshPage(self, Level=REFRESH_NORMAL):
        return self.ctrl.Refresh2(Level)