Interface
Container → controls → callbacks → application ruleOrganizes windows, controls, events and application state.
Overview
MSDialog is a container; TSay displays text, TGet edits a variable and TButton triggers an action. TDN’s Interface index supplied no detailed technical content; this subset uses those specific pages. Visual events should delegate validation and persistence to clearly scoped functions. (Sources: refs. 1–4.)
Syntax
Container → controls → callbacks → application ruleCommented example
#Include "Protheus.ch"
User Function Ed491()
Local oDlg
// Empty window to observe the modal lifecycle.
DEFINE MSDIALOG oDlg TITLE "Test interface" FROM 0,0 TO 120,260 PIXEL
ACTIVATE MSDIALOG oDlg CENTERED
Return NilOpens a test window without fields or persistence. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.
- Validate focus, keyboard, scaling and client; do not activate UI in a headless execution.
- 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.