Re: wxDialog/wxMiniFrame window shape (was Button in title/caption bar of a window? Is it possible?)

Tony Kennedy <[email protected]> Mon, 7 Jul 2025 02:21:20 -0700 (PDT)
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
Thanks, I've got this working, the appearance is not quite right though 
(see attached, I've coloured the new title bar yellow). I can set the 
background of the dialog so it matches the title bar colour, this gets rid 
of the grey area at the top. It would be nicer if I could remove the 
rounded corners of the window, but I guess that's an operating system 
thing, so probably best not to change it.

Thanks again,

Tony.

On Saturday, 5 July 2025 at 22:49:52 UTC+1 Vadim Zeitlin wrote:

> 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/
>

-- 
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/4549a138-f1ce-4b5e-8dc6-76e9ff9603acn%40googlegroups.com.
TitleBar.jpg (image/jpeg, 6.6 KB) - not displayed