FWWizardControl
FWWizardControl():New([oOwner],[aDlgSize])Organizes a wizard with pages and navigation validation.
Overview
Available from 12.1.6. AddStep returns FWWizardStep; its construction block receives the panel for controls. This example configures one step without activating a window, separating construction from navigation. New permits an external owner or its own dialog; dimensions are {height,width}. (Sources: refs. 1–1.)
Syntax
FWWizardControl():New([oOwner],[aDlgSize])Methods
NewCreates controller.FWWizardControl():New([oOwner],[aDlgSize])
AddStepRegisters page.o:AddStep(cID,bConstruct) -> FWWizardStep
ActivateCreates panels and activates wizard.o:Activate()
Commented example
#Include "Protheus.ch"
User Function Ed457()
Local oWiz := FWWizardControl():New()
Local oStep := oWiz:AddStep("ED01",{|oPanel| Nil})
// Empty test panel; this subset does not call Activate.
oStep:SetStepDescription("Review")
oStep:SetNextAction({|| .T.})
oWiz:Destroy()
Return NilConfigured step without active UI or writes. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- Return logical values from navigation callbacks. Example .T. is only a test condition.
- Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.