Integrated Application Platform
An alternative for standalone applications:
1.Rename the library with your code to MyProg (or any name you like the apllication to be called)
2. In Myprog create an item Init, that starts your program, for instance:
function(args)
{
Window(#(MyControllerInMyProg) exitOnClose:, keep_placement:)
}
3. Change Init in stdlib, after the lines:
if Date(Built().BeforeFirst(' (')) < required
{
...
}
replace the remaining code by:
if ("suneido" isnt (progname = ExePath().Basename().BeforeLast(".")).Lower() and
LibraryTables().Has?(progname) and false isnt Use(progname))
Init(Cmdline().Trim())
else if (progname is "suneido")
PersistentWindow.Load()
4. Rename suneido.exe to MyProg.exe
If suneido is started as MyProg.exe, it will show your window and remember the placement and size.
Started as suneido.exe it will give you the WorkSpace etc.