Hi radsoft,
This is a fairly general request that concerns not only IceDesign, but also other designers such as Pureform, PureVision, DialogDesignOR or others, except Rad tools.
I don't think there is
A better way to handle the situation, it depends on the projects (small/large, number of windows...), the developer's habits,...
It's probably best to separate all the forms from the rest of the project, event loop... and just assemble them in your main source file with XIncludeFile.
The different forms will thus be more or less independent from the rest of the project. They can be modified more easily, with less impact on the rest of the project.
To help in IceDesign, you can enable "Add Compiler IsMainFile" option (=> CompilerIf #PB_Compiler_IsMainFile).
It allows you to test each window individually, without impact if called from your main file.
2 other options may also be interesting, "Bind All Gadgets Event" and "Bind Event in an IncludeFile".
It lets you manage all event-handling for windows, menus and gadgets in separate source files.
In ~the same way as mk-soft's
EventDesigner V3 does.
It would be interesting to have other views, to know the organization that one or the other recommends, uses.