Histórico da Página
Composition Setup |
---|
import.css=/download/attachments/3279126062824/newLayouttecnologia.css |
|
Pagetitle |
---|
...
|
|
...
|
Cria
...
um
...
objeto
...
do
...
tipo
...
múltiplos
...
botões.
Hierarquia
...
...
- TMultiBtn
Construtores
Inclusão de trecho | ||||||
---|---|---|---|---|---|---|
|
Propriedades
Inclusão de trecho | ||||||
---|---|---|---|---|---|---|
|
Métodos
Inclusão de trecho | ||||||
---|---|---|---|---|---|---|
|
Exemplos
Bloco de código | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
NewMétodo construtor da classe.TMultiBtn(): New ( [ nRow], [ nCol], [ oWnd], [ bAction], [ nWidth], [ nHeight], [ cimgName], [ nOri], [ cMsg], [ nBtnPerLine] ) --> oObjeto
oObjeto
otMultiBtn := tMultiBtn():New( 01,01,'Titulo',oDlg,; {|x,y| Alert("Selecionado botão: "+Str(y,2)) },200,150,; 'Afastamento',0,'Mensagem',3 ) AddButtonAdiciona um botão.TMultiBtn(): AddButton ( [ oNovoBotao] ) -->
otMultiBtn:AddButton('Opção 01') SetFontsAltera a fonte do título e dos botões.TMultiBtn(): SetFonts ( [ cFonteTitulo], [ nSizeTitulo], [ cFonteBotoes], [ nSizeBotoes] ) -->
otMultiBtn:SetFonts('Tahoma',16,'Tahoma',10)
#include "TOTVS.CH" User Function TMultiBtn() DEFINE DIALOG oDlg TITLE "Exemplo TMultiBtn" FROM 180,180 TO 550,700 PIXEL otMultiBtn := tMultiBtn():New( 01,01,'Titulo',oDlg,{|x , y|Alert("Selecionado botão: "+Str(y,2)) },200,150, 'Afastamento',0,'Mensagem',3 ) otMultiBtn:SetFonts('Tahoma',16,'Tahoma',10) otMultiBtn:AddButton('Opção 01') otMultiBtn:AddButton('Opção 02') otMultiBtn:AddButton('Opção 03') otMultiBtn:AddButton('Opção 04') otMultiBtn:AddButton('Opção 05') ) otMultiBtn:bAction := {|x,y|Alert("Click no botão: "+Str(y,1)) } ACTIVATE DIALOG oDlg CENTERED ReturnExemplo da classe TMultiBtn |
Resultado do Exemplo
Abrangência
Microsiga Protheus 8.11, Microsiga Protheus 11, Protheus 10, TOTVS Application Server 10, ByYou Application Server
...
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas