> Exactly what "status" do you want to check?  I believe the getResult()
> method of the PropertySheetDialog class may give you what you need,
> depending on what is is you want to check.  It returns the status of / from
> the underlying Windows property sheet.
>
> You can tell from the returned keyword if the dialog is not closed yet,
> closed because the user canceled, closed because the user press ok, etc..
>
> In any rate, whatever you want to check, is more likely to be available
> from the Rexx PropertySheetDialog object than from a message object.
>
>
I'd like to ask a question on this topic: I've got a base dialog that can
spawn any number of PS dialogs at a user's request, all via popupAsChild
using the base dialog as parent. Currently, if the base dialog is closed,
all the PS dialogs are closed automatically as one would expect (see an
exception to this below). I've clearly misunderstood how endExecution works
because I've implemented that method in an ok method of the PS dialogs. But
it turns out that there is no ok or cancel method that gets called when
terminating a PS dialog. Instead the ok method should be implemented in the
base dialog and contain endExecution calls against all open PS dialogs to
ensure that they are gracefully terminated, am I correct there?

As for the exception to the automatic close of PS dialogs when closing the
base dialog, one of the pages in the PS dialogs in turn can create another
dialog via popupAsChild using the active PS page as parent. So when the PS
dialog is closed this additional dialog is closed as well, but if the base
dialog is closed, then this extra dialog remains active. While writing this
I realise that this might be the result of using the PS page object as
parent instead of the PS dialog object, or it might be that endExecution is
not properly implemented.

If this makes any sense, then comments are welcome.

Staffan
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to