20,741
edits
Line 25: | Line 25: | ||
== Editing gui/menubar.xml == | == Editing gui/menubar.xml == | ||
{{Note|These dialog files can be edited at run-time and simply closed/re-opened, because the Canvas system will reload them from disk whenever the menu binding is triggered. So this is very convenient for quickly developing and testing your dialogs.}} | |||
Next, open/create $FG_ROOT/Nasal/canvas/gui/dialogs/CanvasDemo.nas and add some boilerplate code: | Next, open/create $FG_ROOT/Nasal/canvas/gui/dialogs/CanvasDemo.nas and add some boilerplate code: | ||
<syntaxhighlight lang="nasal"> | <syntaxhighlight lang="nasal"> |