03-29-2018, 04:14 AM
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
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