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