Canvas GUI: Difference between revisions

Jump to navigation Jump to search
No change in size ,  24 May 2013
m
Line 38: Line 38:


Provide an PropertyList-XML that declares the canvas and its default settings, including a Nasal section that implements the logic:
Provide an PropertyList-XML that declares the canvas and its default settings, including a Nasal section that implements the logic:
<syntaxhighlight lang="php">
<syntaxhighlight lang="xml">
<?xml version="1.0"?>
<?xml version="1.0"?>
<PropertyList>
<PropertyList>
Line 55: Line 55:
Next, replace the original <loglist>
Next, replace the original <loglist>


<syntaxhighlight lang="php">
<syntaxhighlight lang="xml">
<loglist>
<loglist>
                 <halign>fill</halign>
                 <halign>fill</halign>
Line 68: Line 68:
And include the corresponding canvas file:
And include the corresponding canvas file:


<syntaxhighlight lang="php">
<syntaxhighlight lang="xml">
<canvas include="gui/widgets/loglist.xml"> <!-- see $FG_ROOT/Docs/README.gui for details -->
<canvas include="gui/widgets/loglist.xml"> <!-- see $FG_ROOT/Docs/README.gui for details -->
                 <halign>fill</halign>
                 <halign>fill</halign>

Navigation menu