Usina BRAdvPL Guide
Sign in
← All topics
CLASSUnder review

FwDialogModal

FWDialogModal():New()

Builds and activates a modal window in stages.

FwDialogModalAdvPL
01 · OVERVIEW

Overview

createDialog builds components without activation; Activate starts interaction. This example sets size, title and closure. getPanelMain provides the container for extra controls. Confirmation callbacks must validate rules before writes; modality is not a transaction. Some official examples include loose calls or undocumented arguments; this subset uses documented methods only. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

FWDialogModal():New()

Methods

CreateDialogBuilds window and panels without activation.o:CreateDialog()
AddCloseButtonAdds a close button.o:AddCloseButton([bClose])
ActivateStarts modal interaction.o:Activate()
GetPanelMainGets the main panel for controls.o:GetPanelMain()
03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed417()
    Local oModal := FWDialogModal():New()
    oModal:SetTitle("Editorial review")
    oModal:SetSize(320,180)
    oModal:SetEscClose(.T.)
    // Build components before activation.
    oModal:CreateDialog()
    oModal:AddCloseButton()
    oModal:Activate()
    FreeObj(oModal)
Return Nil
Expected result

Test window with closure; no persisted data. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Check LIB version, lifecycle and context before integration. These methods are a documented subset rather than the complete API.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. TOTVS. FwDialogModal. TDN. Accessed on 2026-10-26.
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