Re: Re[2]: wxDialog/wxMiniFrame window shape (was Button in title/caption bar of a window? Is it possible?)
Tony Kennedy <[email protected]> Mon, 7 Jul 2025 08:14:55 -0700 (PDT)
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
Hmm. Tried the Windows 11 trick (DwmSetWindowAttribute), it gives me a square window, but I've still got a small grey area at the top of the window (similar to the rounded corner window). I know this is no longer wx related. I'll see how things look on the Mac and make a decision at that point. Thanks for the advice, Tony. On Monday, 7 July 2025 at 13:40:49 UTC+1 Vadim Zeitlin wrote: > On Mon, 7 Jul 2025 02:21:20 -0700 (PDT) Tony Kennedy wrote: > > TK> Thanks, I've got this working, the appearance is not quite right > though > TK> (see attached, I've coloured the new title bar yellow). I can set the > TK> background of the dialog so it matches the title bar colour, this gets > rid > TK> of the grey area at the top. It would be nicer if I could remove the > TK> rounded corners of the window, but I guess that's an operating system > TK> thing, so probably best not to change it. > > You can (and probably should) change it, but you'll need to use native > APIs (DWM ones under Windows) to do it. > > 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/57685efc-e712-48e4-8e23-ec9728766c15n%40googlegroups.com.
titlebar_square.jpg
(image/jpeg, 3.8 KB) - not displayed