Newbie question about RapaGui
Posted: Sun Aug 09, 2020 5:36 pm
I am trying to create a simple CMS program. The template of the program is this one:
Inside the windows tag i put a vgroup and a listview element as Hollywood need at least a group and an element as far as I understood until now. In this very simple schema now the code is that when I press on the menu the option "Nuovo Cliente" I can add a new customer. In order to achieve this I understood that I need to add code, inside the hollywood file (cms.hws), to create, or add, a new window with a form inside to fill with information about customer. To do this the function to use for is: moai.DoMethod(id, "AddWindow", window) or moai.CreateDialog() ? or moai.DoMethod(id, "AddWindow", window) is only for detached window already declared and closed or hidden?
Thanks for the help, really appreciated!
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<application>
<menubar id="mymenubar">
<menu title="Clienti">
<item help="Inserisce un nuovo cliente">Nuovo Cliente</item>
<item help="Elenca i clienti">Elenco Clienti</item>
</menu>
<menu title="Assistenze">
<item help="Inserisce una nuova assistenza">Nuova Assistenza</item>
<item help="Elenca tutte le assistenze effettuate">Elenco Assistenze</item>
</menu>
<menu title="Fatture">
<item help="Crea una nuova fattura">Nuova Fattura</item>
<item help="Elenca tutte le fatture emesse">Elenco Fatture</item>
</menu>
<menu title="Antivirus">
<item help="Inserisce un nuovo antivirus">Nuovo Antivirus</item>
<item help="Elenca gli antivirus in scadenza">Elenco Scadenze</item>
</menu>
</menubar>
<window id="win" menubar="mymenubar" title="CMS" width="800" height="600">
<vgroup>
<listview>
<column/>
</listview>
</vgroup>
</window>
</application>Thanks for the help, really appreciated!