]> git.saurik.com Git - wxWidgets.git/commitdiff
Added PaintAboveContent function for drawing on top of text (#12176)
authorJulian Smart <julian@anthemion.co.uk>
Fri, 25 Jun 2010 14:05:07 +0000 (14:05 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 25 Jun 2010 14:05:07 +0000 (14:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
include/wx/richtext/richtextctrl.h
src/richtext/richtextctrl.cpp

index 730996fbaa5fba9eb796573d12a0634dc2ae70b9..a54a8660466265842ed002d59406e181e6bc0fa8 100644 (file)
@@ -509,6 +509,7 @@ All (GUI):
 - wxRTC: corrected centring and right-justification spacing.
 - wxRTC: fixed style selection reset after editing a style.
 - wxRTC: can now edit line spacing in .1 increments from 1 to 2.
+- wxRTC: added PaintAboveContent function for drawing on top of text.
 - Added wxBORDER_THEME to XRC.
 - wxGraphicsContext is now enabled by default if supported by the platform.
 - Fix building with using system libpng 1.4 (Volker Grabsch).
index 23a5fdd62c387449f9733c35d71d8e3dbd8052d2..cbd236f5597356d0d16260a35f4ce6bd199882ce 100644 (file)
@@ -687,6 +687,9 @@ public:
     /// Paint the background
     virtual void PaintBackground(wxDC& dc);
 
+    /// Other user defined painting after everything else (i.e. all text) is painted
+    virtual void PaintAboveContent(wxDC& dc) {}
+
 #if wxRICHTEXT_BUFFERED_PAINTING
     /// Recreate buffer bitmap if necessary
     virtual bool RecreateBuffer(const wxSize& size = wxDefaultSize);
index 18d061a4c5da615d6ab8224a33e0d944f2f589a4..0b115f6b6b582cc7be0cc2c466323c973241eb41 100644 (file)
@@ -409,6 +409,9 @@ void wxRichTextCtrl::OnPaint(wxPaintEvent& WXUNUSED(event))
 
         dc.DestroyClippingRegion();
 
+        // Other user defined painting after everything else (i.e. all text) is painted
+        PaintAboveContent(dc);
+
 #if wxRICHTEXT_USE_OWN_CARET
         if (GetCaret()->IsVisible())
         {