Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make my own modal window
#11
The other feature I am looking for is how to make the modal dialog blocking. For example, in a VCL application I can write

result:=InputQuery(a,b,c)

or better yet I can have my own form with an .Execute method, and the Execute method calls showModal and does not return until the modalResult is set.

and the code wont continue until the user presses ok or cancel on dialog.

The examples I have seen launch the modal dialog in some button click, but then continues processing in the OnClose of the modal window. However, it is annoying to have to code that way, i.e. have to continue processing in another method from the one that generated the dialog.

Is there a way to mimic the standard modal dialog approach of the VCL with intraweb? Especially when I have custom search dialogs etc where I want to do something like

if SeachParamsForm.Execute then
begin
// get the search criteria from the form
//execute the search
end
Reply


Messages In This Thread
Make my own modal window - by davenovo - 03-19-2018, 09:24 PM
RE: Make my own modal window - by DanielFields - 03-19-2018, 10:56 PM
RE: Make my own modal window - by davenovo - 03-19-2018, 10:59 PM
RE: Make my own modal window - by DanielFields - 03-19-2018, 11:31 PM
RE: Make my own modal window - by davenovo - 03-20-2018, 04:30 AM
RE: Make my own modal window - by DanBarclay - 03-22-2018, 06:37 AM
RE: Make my own modal window - by Francesco - 05-30-2019, 03:32 PM
RE: Make my own modal window - by davenovo - 03-20-2018, 03:27 PM
RE: Make my own modal window - by davenovo - 03-22-2018, 07:55 AM
RE: Make my own modal window - by davenovo - 03-29-2018, 04:14 AM
RE: Make my own modal window - by DanBarclay - 03-29-2018, 07:24 PM
RE: Make my own modal window - by davenovo - 03-29-2018, 07:54 PM
RE: Make my own modal window - by DanBarclay - 05-31-2019, 03:20 AM
RE: Make my own modal window - by Francesco - 05-31-2019, 06:01 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)