Re: wxGrid, is there any way to get the DC?

Tony Kennedy <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Note : I am using custom cell renderers, a DC is passed to those functions. 
Is it safe to store a pointer to those DCs and use them?

Tony.



On Wednesday, 6 September 2023 at 08:48:56 UTC+1 Tony Kennedy wrote:

> I've got a grid, and in the label, I've got something like
>
> some text[a,b,c,d]
>
> What I need to do is find the exact character a user clicks on when they 
> click in a label cell.
>
> I know I can do a hittest to get the exact point, but I cannot seem to 
> find a way to get the wxDC of the grid so that I can 
> use GetPartialTextExtents.
>
> Does anyone know how to do this?
>
> Thanks in advance,
>
> Tony.
>

-- 
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 on the web visit https://groups.google.com/d/msgid/wx-users/c9bbc881-18fb-4d5b-862f-d3e6b1b210c2n%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.