StrataFrame Forum

Wizard and ProgressIndicator

http://forum.strataframe.net/Topic11412.aspx

By Randy Jean - 9/10/2007

I'm re-working a wizard form I have to use SetupPage style with a progressindicator. However, at this point, I need to know how/if I can programatically control the visibility and progress indicators. I'm not even sure if I want the wizard to do anything automatically at this point.... (maybe just on some interim header items in the collection...) I would like to be able to update the status of any item based on underlying data vs. just wizard navigation. Any help or example would be appreciated.
By Randy Jean - 9/10/2007

Think I got this figured out. I didn't realize there was a form level set of properties to set so that took care of my progressindicator not carrying over to each page. I also figured out if I stuff a bogus key string into the ProgressIndicatorItemKey that will suppress the implicit status update behavior and allow me to write my own status update logic like so:





Me.AtlasTestProgress.SetItemStatus("RunStatus", MicroFour.StrataFrame.UI.ProgressIndicatorItemStatus.Active)


By Trent L. Taylor - 9/11/2007

Yeah, the ProgressIndicator can be attached at the Wizard level and it will automatically move itself from page to page...if you allow it to.  Rather than using a "bogus" key, just leave the ProgressIndicatorKey empty or do not allow the indicator to show up.  A "bogus" key would work as well, but you should get the same results with an empty key.

Also, you can always overwrite the settings of the ProgressIndicator on the pages PageActivated event (or whereever meets your need) as well using the SetItemStatus method as you did in your example. 

By Randy Jean - 9/14/2007

Thanks for the info. Seems like when I tried leaving the key blank then the progress indicator implicitly tried to synch with what page I was on. I still want it to show on each page, but I want to control the progress and status with what's happening behind the scenes.



Anyway, very nice control. Would have taken me a lot longer to even come close to achieving the same look and feel.
By Trent L. Taylor - 9/14/2007

Thanks.  We have found this to be a very handy control!