Deprecated
VD 3.70 will generate a main file (where you can add your code) and an include file with the gadgets.
This main file will not be overwritten if you add gadgets, and choose 'generate source' in the menu.
So if you like to generate a new event loop, delete the file, or klick 'PureBasic Editor' in the menu. The new files will be loaded in the IDE, and you can copy/paste all you need.