Re: Button in title/caption bar of a window? Is it possible?

Vadim Zeitlin <[email protected]> Sat, 5 Jul 2025 23:49:45 +0200
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On Fri, 4 Jul 2025 04:19:01 -0700 (PDT) Tony Kennedy wrote:

TK> I need to implement something like a "pin" button to make a window always 
TK> visible.
TK> 
TK> The ideal way would be to have a button in the caption area of a window. 
TK> I've searched and cannot find a way to do this in wx, is this possible? Or 
TK> do I need to implement platform specific code to do this?

 There is no support for this in wx, you have to either create a window
without any decorations and then draw all of them yourself or use
platform-specific code to integrate an extra button into the native title
bar (which may not be possible for some platforms anyhow, requiring to use
the first solution for them).

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
              https://www.tt-solutions.com/
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQQx+vLQdOwioQqkxtoG6kHeT2wehgUCaGmd+QAKCRAG6kHeT2we
hnPdAJ9BCD2f0/4QtgeHws2fEnT5gXbf7QCeNS0VvSNaSmJqYr4MUuxByVrpUck=
=p8kI
-----END PGP SIGNATURE-----