[wxPython-users] Controlling selection in an HtmlWindow
Robin Dunn
robin at alldunn.com
Mon Apr 2 11:28:35 PDT 2007
Ken Seehart wrote:
> I got scrolling working just fine, but selection seems to be a harder
> problem.
>
> It seems that HtmlWindow doesn't have any methods for getting/setting
> the selection range. Of course there is SelectionToText, but that's not
> much help. SelectWord and SelectLine are also useless because they are
> based on screen coordinates, and in any case are arbitrary and not
> general enough.
>
> It's hard to believe that there is no way to access selection based on
> character offset in the html source. Am I missing something? Perhaps a
> message based interface? The desired functionality is missing from
> wxWidgets.
I don't see anything in the current API for this. There is some
cell-based information on the current selection, but it appears to be
available only when rendering the content. Please file a bug report or
feature request about this.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list