Inside Sample folder you will find a demo project "Includes.dbpro"
the main source file is "Include.bas" (sorry, a throw back to DBC)

If you just "run it" you will be presented with 3 buttons.
When you left-click on one, you can move it around.
right-click to release it.

When you press the "Escape-Key" a file "TDLG2.dba" will be created.
This is a source file that you can include in a project to easily
display a custom dialog.


...............................
OK, what does this prove, or what does it do, or how is this useful....

Well,
Lets say you need a custom dialog with several options, and you are
not sure exactly where to place the buttons.

Simple:
Just make a template dialog with however many buttons you need. And place them anywhere.
See "Include.BAS" for an example of a simple dialog. Or examine the start of
"Dialogman.dba" for another example, and some other docs.

Next, just display your dialog (call "OpenDialog") and make sure the backdrop and
sync rate stuff is already done. Also, please use 640x480 as a screen reselution.
This is only during the design faze, when finished, your dialog will display correctly
reguadless of screen resolution. See function "Convert" if you need to change this.

Next call "EditDialog("MyFile.dba",0)" to move your buttons around. When done, the file
"MyFile.dba" will be created. To use in an application, call "DialogMouse" (see docs).

Naturally, you will need to edit the final source to ensure no duplicate function names.
For multi-state buttons, you will need to add extra work, to identify the extra image
and states. These changes are saved as well. (see Docs)

..................................................

If you haven't figured it out yet, the docs are located in the source code.
Waffle.