Hi,

I am using Wx on Mac and I have a "cosmetic problem" with Wx::Messagbox.
If I set the ICON type using wxICON . . . I never get what is expected. My results on Mac:

wxICON_ERROR = Apple Application ICON in grey
wxICON_WARNING  = Apple Application ICON in grey
wxICON_QUESTION = Exclamation Mark + small Apple Application ICON in grey

Here is some tester - is this a Bug, a feature or something else :)

use strict;
use warnings;

ServusWelt->new->MainLoop;

package ServusWelt;

use Wx qw/ :everything /;
use base 'Wx::App'; # use vars qw(@ISA); @ISA=qw(Wx::App);

sub OnInit {

        Wx::Frame->new( undef, -1, 'Servus Welt')->Show(1);

        Wx::MessageBox("Question", "Icon Type:", wxICON_QUESTION);
        sleep 1;
        
        Wx::MessageBox("Error", "Icon Type:", wxICON_ERROR);
        sleep 1;
        
        Wx::MessageBox("Warning", "Icon Type:", wxICON_WARNING);
        sleep 1;
        
        1;
}


Greetings Alexander

Reply via email to