DVT e Language IDE User Guide
Rev. 24.1.12, 12 June 2024

29.3 SWT/XML Reference

A custom dialog is described in an XML file with .swtxml extension. The first line must declare the file as XML:

   <?xml version="1.0" encoding="utf-8"?>

The topmost element must be a Composite widget that defines the title of the dialog (specified by its id attribute) and the widgets that can be used (standard SWT widgets and custom DVT widgets):

 <Composite xmlns="http://www.swtxml.com/swt"
   id="Dialog Title">

A widget is a graphical component (e.g. Textbox, Checkbox) or a container of other widgets (e.g. Composite, Group). Each widget has a corresponding XML tag. You can use any widget to create your dialog. If you specify an id attribute for the widget tag, it will also produce an output in the dialog result.