I am using wx.html.HtmlWindow to load an html page. Links and Anchors inside the page
works when i click on the links. Now i want to Scroll to an anchor when the page loads
up during LoadPage("test.html").
i tried as below.
self.htmlframe = MyHtmlWindow(self)
self.htmlframe.LoadPage(r'test.html#downtown')
self.htmlframe.Bind(wx.html.EVT_HTML_LINK_CLICKED,self.OnLinkClicked)
print self.htmlframe.GetOpenedAnchor()
print self.htmlframe.HasAnchor("downtown")
print self.htmlframe.ScrollToAnchor("downtown")
it prints downtown, True,True.. But my htmlwindow is not scrolling to that anchor.
Please give your valuable suggestions.
Regards,
Maverick.
ยทยทยท
Never miss a thing. Make Yahoo your homepage.