Atozed Forums

Full Version: Faking modal Form
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello!

I'm converting a VCL application and I'm really missing the ShowModal function in IntraWeb :-)

is there an example how I can "fake" this?

What I want to do is this;

From Form1 I want to create Form2.
Then I want to show Form2.
Depending on what button I press in From2 I want to set a return value and close Form2 making Form1 reappear.

Best regards, Mikael
(06-14-2023, 01:22 PM)Lenfors Wrote: [ -> ]Hello!

I'm converting a VCL application and I'm really missing the ShowModal function in IntraWeb :-)

is there an example how I can "fake" this?

What I want to do is this;

From Form1 I want to create Form2.
Then I want to show Form2.
Depending on what button I press in From2 I want to set a return value and close Form2 making Form1 reappear.

Best regards, Mikael

See this example from intraweb samples:
https://github.com/Atozed/IntraWeb/tree/...odalWindow
Ok, thanks. There was a lot of good examples here!