B4J Question B4J Problem with modal dialogues

gezueb

Active Member
Licensed User
Longtime User
Hi, I have come across a problem after updating to the latest version of b4J 4.7 and its java components.

I open a main form in Appstart, then do a showandwait on a secondary form to ask for settings. When settings are done, the settings page is closed. The program continues ok after the closing event. But then, when I call a modal dialogue e.g. Msgbox.show or open another dialogue with showandwait, the pop-up form often - not always - remains blank or just shows the title if any. When the failing pop-up is closed, all further modal dialogues work ok again like a charm.

The same code worked allright with previous versions of B4J. Is there a way to initialize these modal methods?
Thanks for help, Georg
 

gezueb

Active Member
Licensed User
Longtime User
I have found a solution after many experiments. On exit of the first modal dialogue (settings in my case) I now call the next sub with
callsubdelay (..2 in fact as it needs an argument)
rather than the immediate call. This seams to give the system time to clean up before the next dialogue is called. Anyway, it works now as advertised!
 
Upvote 0
Top