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

Vadim Zeitlin <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCZ366rAAKCRAG6kHeT2we
hvCrAKCsGOj3WNAzxQlWD16weWpotVbvBgCglcUUNRBXjx5P1x349EEQazhR8o4=
=TQPT
-----END PGP SIGNATURE-----
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.