wxHtmlWidgetCell problem
Robin Dunn
robin at alldunn.com
Mon Jun 4 11:32:31 PDT 2007
There is a typecast to wxScrolledWindow in wxHtmlWidgetCell::Draw and
wxHtmlWidgetCell::DrawInvisible that causes problems if somebody tries
to use widgets in the html used in a wxHtmlListBox. Since the parent
window in this case is not a wxScrolledWindow then the typecast is bogus
and interesting things (a.k.a crashes) happen when GetViewStart is called.
Can anybody spot an easy way to change it so just wxWindow* can be used
and then this code will work for both wxScrolledWindow and
wxHtmlListBox? Can the unused x, y, view_y1 and view_y2 parameters be
used to accomplish the same thing?
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wx-dev
mailing list