oDlgVariable receiving the dialog.
AdvPL GuideDEFINE DIALOG oDlg TITLE cTitle FROM nTop,nLeft TO nBottom,nRight PIXELDefines a dialog before activating its interface.
DEFINE DIALOG prepares the window; ACTIVATE DIALOG starts interaction. The official TTimer example shows this separation and pixel coordinates. TDialog documentation describes modal behavior and recommends MsDialog for Protheus applications. The syntax below is a teaching subset observed in examples, not every clause from every include. The authored example creates an empty window closable through its window control without reading or writing data. (TOTVS, n.d., refs. 1–2)
DEFINE DIALOG oDlg TITLE cTitle FROM nTop,nLeft TO nBottom,nRight PIXELoDlgVariable receiving the dialog.
cTitleWindow title.
nTop,nLeft,nBottom,nRightStart and end coordinates; PIXEL defines the unit.
Command without a function return.
#Include "Protheus.ch"
User Function Ed347()
Local oDialog
// Define first; activate once construction is ready.
DEFINE DIALOG oDialog TITLE "Editorial example" FROM 0,0 TO 180,320 PIXEL
ACTIVATE DIALOG oDialog CENTERED
Return NilCentered empty window; no database operation. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.