* flying.toaster wrote:
 > <dialog include="Gui/fuel_load.xml"></dialog>

This approach isn't wrong, though. You can load the dialog into the tree
that way, but you'd rather use a self-ending XML tag for it, not an empty
group:

  <dialog include="Gui/fuel_load.xml"/>

And then you need to register that XML dialog tree with the "gui"
subsystem, using the "dialog-new" fgcommand. Only then can you open
it with "dialog-show" like you did in your binding example. The gui.Dialog()
function does this for you already, and it offers a gui.Dialog.toggle()
method (which I find desirable for key activated dialogs), and allows to
reload the dialog from the file via gui.Dialog.load() method (which is
very convenient while you work on that dialog file). If you need more
than gui.Dialog() offers, then we might want to implement the missing
pieces there. You are, of course, free to go a new way.  :-)

m.



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to