Usina BRAdvPL Guide
Sign in
← All topics
CLASSUnder review

FWWizardControl

FWWizardControl():New([oOwner],[aDlgSize])

Organizes a wizard with pages and navigation validation.

FWWizardControlAdvPL
01 · OVERVIEW

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.)

02 · SYNTAX

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()
03 · PRACTICAL EXAMPLE

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 Nil
Expected result

Configured step without active UI or writes. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • 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.

Related content

REFERENCES
  1. TOTVS. FWWizardControl. TDN. Accessed on 2026-10-27.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha