Page 1 of 1

Setting icon at the title bar of wxMessageBox

Posted: Fri Nov 11, 2011 5:57 am
by aishwarya
Hi,

I need my wxMessageBox to contain icon set at its title bar ,just like SetIcon is available for wxFrame.

Is there a way to set it?

Re: Setting icon at the title bar of wxMessageBox

Posted: Fri Nov 11, 2011 6:21 am
by evstevemd
That is not possible. Maybe try wxMessageDialog and use SetIcon

Re: Setting icon at the title bar of wxMessageBox

Posted: Fri Nov 11, 2011 6:29 am
by DerKleineNik
Just have a look at this helppage to wxMessageBox:

http://docs.wxwidgets.org/stable/wx_dia ... messagebox

You can choose between
wxICON_EXCLAMATION Shows an exclamation mark icon.
wxICON_HAND Shows an error icon.
wxICON_ERROR Shows an error icon - the same as wxICON_HAND.
wxICON_QUESTION Shows a question mark icon.
wxICON_INFORMATION Shows an information (i) icon.

I hope this is what you wanted

Re: Setting icon at the title bar of wxMessageBox

Posted: Fri Nov 11, 2011 6:32 am
by evstevemd
DerKleineNik wrote:Just have a look at this helppage to wxMessageBox:

http://docs.wxwidgets.org/stable/wx_dia ... messagebox

You can choose between
wxICON_EXCLAMATION Shows an exclamation mark icon.
wxICON_HAND Shows an error icon.
wxICON_ERROR Shows an error icon - the same as wxICON_HAND.
wxICON_QUESTION Shows a question mark icon.
wxICON_INFORMATION Shows an information (i) icon.

I hope this is what you wanted
He is asking Icon on titlebar not what you are talking about!

Re: Setting icon at the title bar of wxMessageBox

Posted: Mon Nov 14, 2011 5:35 am
by aishwarya
Thank a lot wxMessageDialog solves my issue.