Hi,

My program uses an internal web server which is ran in a separate thread and
when a certain address is accessed, I want it to display a certain
Wx::Dialog.

I've seen that I can display with no problems a Wx::MessageBox, but I can't
display well a Wx::Dialog because it freezes the application. The dialog
doesn't display anything on the screen, or at least with my screen reader I
can read just the title of the dialog. If I close the dialog with Alt+F4, it
appears a window telling me that the application is not responding, and it
asks me if I want to end it now.

I have tried both to set a parent to the dialog (the main frame of the
program which is created in the main thread) and I have also tried to set
the parent to undef, using also the style wxDIALOG_NO_PARENT, but it still
doesn't work.

Do you know why Wx::MessageBox works but not Wx::Dialog and if it is
possible to do what I want, maybe using another ways?

Here is the dialog I tried to create in that secondary thread (with no
content this time):

my $dialog = Wx::Dialog->new(undef, -1, "Test dialog", wxDefaultPosition,
[390, 100], wxDEFAULT_DIALOG_STYLE|wxDIALOG_NO_PARENT);

$dialog->Show(1);

Thank you.

PS. Can you tell me if WxPerl works with Perl 5.10?

Octavian

Reply via email to