Opened 18 years ago

Last modified 15 years ago

#1 closed defect

Text selection in wxHtmlWindow

Reported by: anonymous Owned by: vaclavslavik
Priority: normal Milestone:
Component: wxHtml Version:
Keywords: Cc: vaclavslavik, bkp, jasonwea, dimitrishortcut
Blocked By: Blocking:
Patch: no


Bug#: 2
Product: .wxWindows
Version: current CVS
Platform: All
OS/Version: All
Severity: enhancement
Priority: P2
Component: HTML
AssignedTo: vaclav@…
ReportedBy: robin@…
Summary: Text selection in wxHtmlWindow

It would be nice to be able to select text in the wxHtmlWindow with
the mouse and have support for copying it to the clipboard.

Change History (5)

comment:1 Changed 16 years ago by bkp

I just wanted to ditto the above request (hopefully adding
weight to the prioritization).

comment:2 Changed 16 years ago by anonymous

Logged In: NO

Yes, I'd also like to see that feature. I already have an application
using wxHTML, and copying is already missed.


comment:3 Changed 16 years ago by jasonwea

This is my most wanted addition to wxWindows at this time.
Oh how nice it would be to have copy to clipboard support for

As my application must have copy and paste support, I am
going to have to give the user access to a wxTextCtrl
containing the same data as the wxHtmlWindow in order for
the user to be able to copy text.

I investigated subclassing wxHtmlWindow and adding
support myself, but it seems modifications would be required
to the wxHtmlCell hierarchy (such as adding a virtual method
to wxHtmlCell to allow the retrieval of text and also probably
a boolean to enable highlighted cells to be visual distinct. An
inverse brush could be used to show highlighted text).

comment:4 Changed 15 years ago by dimitrishortcut

This is now implemented (By Vaclav) in CVS HEAD. Seems
to work fine with wxMSW (though flickery right now) and

comment:5 Changed 15 years ago by dimitrishortcut

Disregard the comment regarding flickering with wxMSW. I
didn't have the latest sources, it's fixed now.

Note: See TracTickets for help on using tickets.