Interfaces Visuais (Lua Forms)

.html ››
Parent Previous Next

Interfaces Visuais (Lua Forms)

       As interfaces visuais do SDK3, incluindo os modelos de fichas, são feitas usando Lua Forms (arquivos de extensões ‘.lfm’).

Principais características do Lua Form

Exemplo 1 – Olá mundo

<?xml version="1.0" encoding="UTF-8"?>
<form formType="sheetTemplate" dataType="br.com.meusite.MeuDataType"
      title="Ficha de Teste" name="frmFichaTeste">

        <label text="Olá mundo"/>  

</form>



Exemplo 2 – Um layout, um label, um edit e um botão

<?xml version="1.0" encoding="UTF-8"?>
<form formType="sheetTemplate" dataType="br.com.meusite.MeuDataType"
          title="Ficha de Teste" name="frmFichaTeste">

        <layout height="30" width="200">
                <label text="Força:" align="client" horzTextAlign="trailing"/>  
                <edit align="right" margins="{left=10}" width="100"/>
        </layout>

        <button text="Eu sou um botão" top="40" left="50" width="150"/>    

</form>


Created with the Personal Edition of HelpNDoc: Effortlessly Create Encrypted, Password-Protected PDFs