Opened 14 years ago

Last modified 11 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

Description

Bug#: 2
Product: .wxWindows
Version: current CVS
Platform: All
OS/Version: All
Status: ASSIGNED
Resolution:
Severity: enhancement
Priority: P2
Component: HTML
AssignedTo: vaclav@…
ReportedBy: robin@…
URL:
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 13 years ago by bkp

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

comment:2 Changed 12 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.

Marcus

comment:3 Changed 12 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
wxHtmlWindow.

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 11 years ago by dimitrishortcut

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

comment:5 Changed 11 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.