I have some code where I Disable() my first DialogBox and Enable() and
Show() my second DialogBox. I later reverse this in the OK_Click event of
the second DialogBox by Hiding and Disabling the second DialogBox and
Enabling the first DialogBox. Then some procedure code is executed in this
same OK_Click event. Until this code completes, my first DialogBox objects
that were covered by the second DialogBox at the time it was Hidden remain
Hidden. I had to put in some code like this...
sub OK_Click {
$W2->Hide();
$W2->Disable();
$W->Enable();
$W->ListBox1->Update();
$W->ListBox2->Update();
$W->Add->Update();
$W->Remove->Update();
# Some Procedure Code Then Starts Here
}
...in order to repaint all the first DialogBox objects before the procedure
code kicks off, so that the user does not have to look at a corrupted screen
while they wait for the procedure code to complete.
If you are familiar with the GUI::MessageBox, you know that it does not
corrupt the objects on the Window or DialogBox it overlays once it closes.
How can we get that some functionality without having to execute Update();
methods for all individual objects as I do above. You can't just do a
$W->Update(). I tried that.
Regards,
Eric Hansen