Re: Re[2]: wx 3.3.0, wxGrid and custom renderer problems.

Tony Kennedy <[email protected]> Sun, 6 Jul 2025 23:55:03 -0700 (PDT)
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Something has definitely changed. Prior to 3.3.0, if I call "dc.Clear();" 
during the custom renderer "Draw" function, it only clears the cell. Now it 
clears the whole grid, the gridlines do still draw though. Strange.

I've got it working anyway now, and it's definitely better practice to 
limit drawing to the actual rect I'm supposed to draw into.

Tony.

On Saturday, 5 July 2025 at 22:54:01 UTC+1 Vadim Zeitlin wrote:

> On Fri, 4 Jul 2025 06:56:04 -0700 (PDT) Tony Kennedy wrote:
>
> TK> Yes, if I just draw in the rect, all works fine.
>
> I think you have to do this, possibly by setting the clipping rectangle
> yourself, because we do want to allow the renderers to draw beyond the
> current cell, at least for overflowing text.
>
> I'm quite surprised this has changed since 3.2, however, I don't see any
> differences in the relevant code...
>
> Regards,
> VZ
>
> -- 
> TT-Solutions: wxWidgets consultancy and technical support
> https://www.tt-solutions.com/
>

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/57cffe89-13c3-48e1-8b63-8918418486a7n%40googlegroups.com.