nTop, nLeftRow and column of the frame starting coordinate.
AdvPL Guide@ <nTop>, <nLeft> GROUP <oGroup> TO <nBottom>, <nRight> [LABEL <cLabel>] [OF <oWnd>] [COLOR <nClrText>, <nClrBack>] [PIXEL]Draws a TGroup frame with an optional title to visually organize controls.
The @ ... GROUP command draws a grouping rectangle in the interface and may display a title. During compilation it is translated into the TGroup class New() constructor. Unlike TPanel or TFolder, TGroup does not create a container: controls placed inside the frame still belong to the dialog, panel or tab specified in their own commands.
@ <nTop>, <nLeft> GROUP <oGroup> TO <nBottom>, <nRight> [LABEL <cLabel>] [OF <oWnd>] [COLOR <nClrText>, <nClrBack>] [PIXEL]nTop, nLeftRow and column of the frame starting coordinate.
oGroupVariable that receives the created TGroup object.
TO nBottom, nRightFinal row and column, defining the lower and right limits of the frame.
LABEL / PROMPT cLabelTitle displayed on the grouping frame.
OF oWndDialog, panel, tab or other parent component where the frame is drawn.
COLOR / COLORS nClrText, nClrBackText color and, optionally, component background color.
PIXELIndicates that coordinates are expressed in pixels from the upper-left corner of the parent.
#Include "TOTVS.ch"
User Function ExGroup()
Local oDlg
Local oGroup
Local cUser := Space(30)
Local cPassword := Space(20)
Define Dialog oDlg Title "Access" ;
From 100, 100 To 300, 560 Pixel
@ 10, 10 Group oGroup To 90, 250 ;
Label "Credentials" Of oDlg Pixel
@ 30, 20 Say "User:" Of oDlg Pixel
@ 28, 75 Get cUser Size 130, 12 Of oDlg Pixel
@ 58, 20 Say "Password:" Of oDlg Pixel
@ 56, 75 Get cPassword Size 130, 12 ;
Of oDlg Pixel Password
Activate Dialog oDlg Centered
ReturnGROUP draws the frame. SAY and GET belong directly to oDlg even though they appear inside it.
#Include "TOTVS.ch"
User Function ExGroupFolder()
Local oDlg
Local oFolder
Local oGroup
Local lEnviar := .T.
Define Dialog oDlg Title "Configurações" ;
From 0, 0 To 320, 560 Pixel
@ 10, 15 Folder oFolder Prompts "Notificações" ;
Size 240, 120 Of oDlg Pixel
@ 10, 10 Group oGroup To 75, 210 ;
Label "E-mail" Of oFolder:aDialogs[1] Pixel
@ 30, 20 CheckBox lEnviar Prompt "Enviar confirmação" ;
Size 120, 15 Of oFolder:aDialogs[1] Pixel
Activate Dialog oDlg Centered
ReturnThe frame and CHECKBOX belong to the same tab; oGroup remains only a visual element.
© 2026 Usina.BR. Todos os direitos reservados. TOTVS, Protheus, Microsiga e seus respectivos logotipos são marcas de titularidade da TOTVS S.A. AdvPL é uma linguagem de programação desenvolvida pela TOTVS. O AdvPL Guia é um projeto independente, sem vínculo, representação, patrocínio ou afiliação com a TOTVS S.A., suas franquias ou representantes.