Programmatically navigating Wizard control


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
You got it! Smile
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Thanks for the information. I later saw the CurrentPage() also. Basically one can set the current page via an index, the page name or via a page object. Nice.
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
There is no need for you to use the delegates directly.  If you are not familiar with a delegate, it is basically an emissary between two different process or threads.  Any of our events that may have potential interaction with objects on another thread use the delegate...which is what you saw here.  This allows us to Invoke off of a synchronizing thread which will prevent illegal cross thread violations.

Just calling the RaiseEvent method will lead to bad mojo BigGrin when threads or other delegates are involved...so it is always best to create events that talk "outside" of itself to talk through a delegate and invoke off of a synchronizing object.

Also, you can just set the CurrentPage of the wizard control as well:

MyWizardControl.CurrentPage = MyWizardPage

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I figured it out in the Object Browser.



SetActivePage()



That was easy. BigGrin



However, could you explain how the Deleg_xxxClicked and why they would be used instead of just the normal clicked events?
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I am trying to navigate to a page in the wizard control via code. I've tried:



wizardControl.PageCollection.Item("somePage").visible = true

wizardControl.PageCollection.Item("somePage").Show()



Neither worked. How can I do this?



Thanks!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search