Usina BRAdvPL Guide
Sign in
← All topics
FOUNDATIONUnder review

Interface

Container → controls → callbacks → application rule

Organizes windows, controls, events and application state.

InterfaceAdvPL
01 · OVERVIEW

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

02 · SYNTAX

Syntax

Container → controls → callbacks → application rule
03 · PRACTICAL EXAMPLE

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

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

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

Related content

REFERENCES
  1. TOTVS. MSDIALOG(). TDN. Accessed on 2026-10-27.
  2. TOTVS. TGet. TDN. Accessed on 2026-10-27.
  3. TOTVS. TSay. TDN. Accessed on 2026-10-27.
  4. TOTVS. TButton. 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