[wxPython-users] Controlling selection in an HtmlWindow

Ken Seehart ken at seehart.com
Mon Apr 9 14:22:16 PDT 2007


I added the feature request and got a cold response to it.  I also =

started a thread on the wxWidgets board, which also was not met with =

much enthusiasm.

Specifically I want to add GetSelection and SetSelection to =

wxHtmlWindow, which would operate on ranges in the html source (the only =

simple, and unambiguous choice that survives re-parsing changed =

content).  Seems totally logical to me.

There seems to be two possibilities:

   1. I'm confused
   2. The rest of the world is completely lacking of imagination

Do you have an opinion?

Thanks,
- Ken

Robin Dunn wrote:
> 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.
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200704=
09/dd5b7ade/attachment.htm


More information about the wxpython-users mailing list