Atozed Forums
Faking modal Form - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Faking modal Form (/thread-3314.html)



Faking modal Form - Lenfors - 06-14-2023

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


RE: Faking modal Form - ioan - 06-14-2023

(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/master/XIV/Delphi/ModalWindow


RE: Faking modal Form - Lenfors - 06-20-2023

Ok, thanks. There was a lot of good examples here!