FwDialogModal
FWDialogModal():New()Builds and activates a modal window in stages.
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.)
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()
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 NilTest window with closure; no persisted data. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- 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.

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