Greetings. I am at wit's end here. This message is similar to one I
sent to wx-users earlier today. From more testing, I am suspecting
that my problem is in a misunderstand of some wxPerl-specific idiom.
If anyone here can suggest a fix, I would be most appreciative.
I have hand-crafted a non-modal dialog (derived from
Wx::Dialog) to show the user the progress of a process. It has a
StaticText, a Gauge, and a button for stopping the operation. The
program changes the value of the StaticText and updates the position
on the Gauge, and that works just fine.
What is perplexing me is the button. It doesn't show up. Instead,
there is a transparent hole in the dialog showing through to the frame
below. If I put up a temporary modal dialog, the button then appears,
but it is inactive. Also, the cancel box on the dialog is inactive.
The button gets drawn (and the cancel box made active) only later, after all the
activity is finished and the program is back waiting for input on the
main frame. Once the button becomes active, it activates just fine and
does what it is supposed to (and so does the cancel box). So
EVT_BUTTON works fine, just not until later.
If I change the dialog's Show(1) to ShowModal, the button works
fine (no transparent weirdness) and the close button works. Of course,
the program doesn't progress until I dismiss the now-modal dialog, so
this is not an option. The transparentness happens whether or not I
use SetTopWindow.
I strongly suspect that this is a newbie error having to do with event
tables and event handling when you have a non-modal window over a
frame. Does the "transparent unrepsonsive button" meme ring a bell for
anyone else who had this problem? If so, I would love to hear how you
got through it.
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc. Get Certified Today
Register for a JBoss Training Course. Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id845&op=click
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|