FormEx query

richt

Member
Licensed User
Hi guys, more specifically, hi agraham :)

Is there any reason why opening a modal formex window from a mdi parent, then closing the modal window then hides the mdi parent as well?

For example, I'm in my app, click 'New', opens a modal formex, click 'Done', I close the modal form and then the entire app gets hidden behind whatever other apps are running at the time.

It's not a massive thing, just a little niggly when trying to get things done quickly you have to go and hunt for the app on your start bar.

Aside from that the formex library has been a saviour for my desktop development so thank you :icon_clap:

Cheers,
Rich
 

agraham

Expert
Licensed User
Longtime User
I can't reproduce that behaviour either running from the IDE or when compiled so maybe I'm doing something different to you.

In the FormExDemo at line 327 if I replace "FormEx2.Hide" by "FormEx4.Show" it now shows a modal form when the Hide button on "MDI child 1" is clicked. However when I close the modal form the MDI form still remains on top.
 

richt

Member
Licensed User
This is embarrassing. Found the problem, couple of subs had formex.close not formex.hide. Unlike unmodal formexs when you close them they 'die', modal formexs can live on without error it seems.

Sorry agraham, thanks for your prompt response.

Cheers,
Rich
 
Top