TOPIC: modeless dialogs?
#1929
modeless dialogs? 3 Months, 1 Week ago
from Peter: i looked for modeless dialog but it seems not possible. Correct?

You should be able to use a normal Window for a modeless dialog.

Suneido provides dialog navigation in Windows.

You could use styles to make the window always on top.

What would a modeless dialog do that you couldn't do with a Window?
 
 
andrew
 
#1931
Re:modeless dialogs? 3 Months, 1 Week ago
Normally i use dialog to get info from user that is then processed. If i use window, the window is created but the code do not wait for the answer from the window.

example code:
result = DialogRegistration()
if (result == false)
return Record(vars:.vars, next:.next.Add('cancel'))
.vars['sourceType'] = result.sourceType

When user is done, result is processed. When result is coming from window, the next lines are already run after the window is constructed. But result is not yet known...
 
 
#1932
Re:modeless dialogs? 3 Months, 1 Week ago
But isn't it the same with a modeless dialog as with a window? Everything else has to keep running since you can use other windows.

If you want to do something when they close the dialog then you can do it in the method for that event. e.g. On_OK

From MSDN:

However, when a form is shown as modeless, the code following the Show method is executed immediately after the form is displayed.
 
 
andrew
 
#1933
Re:modeless dialogs? 3 Months, 1 Week ago
Thanks for pointing that out, did not know code after starting modeless dialog would execute immediately. Put it that way user will have to use work around (start more then one instance of the application).

Thanks for the information!