Re: Re[2]: wxDialog/wxMiniFrame window shape (was Button in title/caption bar of a window? Is it possible?)
Tony Kennedy <[email protected]> Tue, 15 Jul 2025 10:59:09 -0700 (PDT)
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
Related to this, I cannot find a way to add a menu to this window. Is there any way to do this? I can always add some flat buttons to a toolbar instead and create a popup when they are clicked. Tony. On Monday, 7 July 2025 at 16:14:55 UTC+1 Tony Kennedy wrote: > 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/76fb28d3-0fb4-4126-825c-13cfa488be65n%40googlegroups.com.