Howto talk:Processing legacy PUI dialogs using Canvas: Difference between revisions

Jump to navigation Jump to search
Line 615: Line 615:


call(codeObj2, [], nil, locals);
call(codeObj2, [], nil, locals);
</syntaxhighlight>
== Removing close button automatically using heuristics ==
Typically, many PUI/XML diaogs will contain a simple close button to emulate window-like behavior, this won't be needed for the Pui2Canvas parser, so could be dropped automatically
<syntaxhighlight lang="xml">
<button>
      <legend/>
      <key>Esc</key>
      <pref-width>16</pref-width>
      <pref-height>16</pref-height>
      <border>2</border>
      <binding>
        <command>dialog-close</command>
      </binding>
    </button>
</syntaxhighlight>
</syntaxhighlight>

Navigation menu