I've got a dialog with a number of static text and text control fields. In
my app I'm telling the dialog to Show() itself and then I'm immediately
stuffing values into its text control fields derived from my algorithm.
Unfortunately, the static text in my dialog is only ever displayed when my
algorithm is finished, and right before I call Destroy(). How do I force
the dialog to Show() itself in its entirety before the algorithm starts?
I've got a dialog with a number of static text and text control fields.
In
my app I'm telling the dialog to Show() itself and then I'm immediately
stuffing values into its text control fields derived from my algorithm.
Unfortunately, the static text in my dialog is only ever displayed when my
algorithm is finished, and right before I call Destroy(). How do I force
the dialog to Show() itself in its entirety before the algorithm starts?
Does your program return to the event loop after calling Show or do you go
immediately to your algorithm? If the latter then you can try calling
wxYield before calling your algorithm and periodically during it so other
event handlers (like paint events for the static texts) have a chance to
run. Another option is to move your algorithm to a separate thread and let
the main thread go back immediately to the event loop.