Re: miniIcon on FXMessageBox

Jeroen van der Zijp <[email protected]>
Newsgroups gmane.comp.lib.fox-toolkit.user
Organization FOX Toolkit
Message-ID <[email protected]>
On Fri, 8 Oct 2021 08:13:11 -0400
"John Selverian" <[email protected]> wrote:

>I'm trying to set the icon on the titlebar of a FXMessageBox:
>
> 
>
> 
>
>       FXMessageBox messageBox(this, titleStr.text(), messageStr.text(),
>infoIcon, INFO_ICON| DECOR_TITLE | DECOR_BORDER);
>
> 
>
>                my_icon = new FXXPMIcon(w->getApp(), my_icon_imge);
>
>                messageBox.setMiniIcon(my_icon);
>
> 
>
> 
>
> 
>
>The icon "my_icon" get created fine, I use it on the main window.
>
> 
>
>It never gets sets in the FXMesageBox

I made a little change in FXTopWindow.cpp setdecorations(). It forces
the menu decoration flag if an icon is available.

What the WM does is, if there is a menu button, it slaps the icon on it.

If the icon was set but the menu button wasn't enabled, the icon wouldn't
show on the title bar.

This seems to fix it for me [XFCE4 Window Manager].



		-- JVZ



-- 
+----------------------------------------------------------------------------+
| Copyright (C) 08:00 10/ 8/2021 Jeroen van der Zijp.   All Rights Reserved. |
+----------------------------------------------------------------------------+
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.