Re: Using a generic control where the native one is default

Maarten Bent <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Hi,

I've used a hack to make it work in the past. See the patch in this 
discussion, it probably still works:
https://groups.google.com/g/wx-dev/c/n5oPcE6i8hU/m/x6JC2PJpEgAJ

Maarten


On 8 Jan 2025 18:49, Vadim Zeitlin wrote:
> On Mon, 6 Jan 2025 11:23:47 -0800 (PST) PB wrote:
>
> P> is there a (simple and supported) way of using (also) the generic version
> P> of a control on the platform where the native control is used by default
> P> (aside from wxGenericStatic{Bitmap|Text})?
>
>   Unfortunately, the simple (and supported :-) answer to this question is
> "no". It would be really nice to have it and I toyed with the idea of
> adding factory-like API that would allow it several times in the past, but
> could never get something working.
>
> P> I am interested in generic wxListCtrl on Windows in particular.
>
>   Of course, we do have hacks for allowing to do this in particular cases
> (we're nothing if not pragmatic...) and it might be possible to do it in
> this one too: AFAICS, you should be able to #include wx/generic/listctrl.h
> and then just use wxGenericListCtrl.
>
>   I am a bit curious why do you want to use generic wxListCtrl under
> Windows instead of just using wxDataViewCtrl there, which is already
> generic on this platform and has many other advantages compared to
> wxListCtrl (its main drawback is not being native, but this doesn't count
> if you use generic version of wxListCtrl anyhow).
>
>   A better solution would be really nice to have but, realistically, I'm not
> sure if we're ever going to have it...
>
>   Good luck,
> VZ

-- 
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/908ce274-5238-41ce-92f7-d4e79e4ee25c%40gmail.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.