Mark, thanks for the feedback. I've looked at your third option, the
propSheet attribute, but I'm not sure I understand how I could use that for
communication between two pages?

Yes, you are quite right, I'm trying to reuse code whenever I can but I
haven't fully got into oo-thinking yet so my success rate is not optimal ;)
Thanks for the hint on using a mixin class instead of a subclass, it hadn't
come into my mind, it makes more sense.


On Tue, Sep 25, 2012 at 3:39 PM, Mark Miesfeld <miesf...@gmail.com> wrote:

> On Tue, Sep 25, 2012 at 5:00 AM, Staffan Tylen <staffan.ty...@gmail.com>wrote:
>
>
>> I'm looking for a "best approach" to the following situation: imagine a
>> propertysheet with two pages (tabs), where one is running a rather long
>> process and the other is used to show the progress using one or more
>> progress bars. My question here is: what's the best way to communicate the
>> progress in page1 to page2? I believe that I have two options to choose
>> from:
>>
>> 1. extract the page2 object using the 'pages' method in the propertysheet
>> class, then use methods in page2 to update the progress bars
>> 2. use the 'querySiblings' method to pass data from page1 to page2.
>>
>> There might even be other ways of doing this, my question is what would
>> be the preferred one?
>>
>
> Staffan,
>
> I don't thing there is any "preferred" one.  A third approach would be to
> the use the propSheet attribute to communicate through the owner dialog.
>
> It seems to me that a "progress" dialog is something that just begs to be
> reusable.  So, I would probably not use the querySiblings method.  As you
> design the page that has the progress bars, you could think about which
> methods of that dialog could be generically used in a progress dialog.
>  Then extract those methods into a mixin class that could be inherited to
> produce a progress dialog useful in any situation.
>
> --
> Mark Miesfeld
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Oorexx-users mailing list
> Oorexx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to