XmIconButton in a menu, why not?

If I use XmIconButton in a menu, I get the following warning

Name fileM
Class XmRowColumn
Attempt to add wrong child type to a menu (that is, XmRowColumn) widget

Shouldn't XmIconButton be a subclass of XmPushButton and be allowed as a child of RowColumn?
It works, but I hate having my programs spitting out warnings of any kind.
I am using OpenMotif 2.2


Andriy Konoval

Andriy Konoval's picture

Not reproduce .

It is fixed in newest openmotif versions.


fredk

fredk's picture

Re: XmIconButton in a menu, why not?

You can quiet this message by setting XmNisHomogeneous=False for the menu (RowColumn)
--
Fred K


dpeterc

dpeterc's picture

Re: XmIconButton in a menu, why not?

Thank you very much for the tip regarding the warning.
Actually, now that XmPushButton can have XmNlabelType XmPIXMAP_AND_STRING, and it works correctly, XmIconButton becomes almost unnecessary.
So I prefer to use XmPushButton in my applications.