Suneido

Integrated Application Platform

  • Home
  • Learning
    • Suneido Manual
    • Beginners
      • Inside Suneido
      • The Suneido Programming Language
      • The Suneido Database
      • Installing Suneido
      • Building Suneido
      • IDE Go To Tour
      • Upgrading To A New Release
    • Advanced
      • Canvas Control
      • DrawControl Part 1
      • DrawControl Part 2
      • DrawControl Part 3
      • SAX Like XML Processing
      • A Plug-In Architecture
      • A Simple Wizard Framework
      • An HTML Include Facility
      • An RSS 2 Feed Creator
      • MIME Generation
      • A New Add-on Facility
      • Workspace Improvement Hack
    • Mockito for Suneido
    • The Suneido Task Scheduler
    • Contributing To Suneido
    • Contributor Assignment of Copyright
    • Language Translation
    • Future Directions
    • Interview With Andrew Mckinlay
  • Forum
    • Announcements
    • Internals & Enhancements
    • Cookbook
    • General
  • FAQ
  • Screenshots
  • Downloads
  • Links

Re: Re: Standalone use and PersistentWindow

Integrated Application Platform › Forums › General › Standalone use and PersistentWindow › Re: Re: Standalone use and PersistentWindow

April 27, 2012 at 6:40 pm #923
josschaars
Participant

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.

Search Forums

Log In
Welcome to the new Suneido Web Site and Forum.
Register
Lost Password
users of the previous PHPBB Forum should be able to log in with their previous username and password.

Recent Topics

  • Alpha copy of gSuneido to play with
  • how to start jsuneido ?
  • Problem Starting Suneido…
  • Dialog not showing buttons
  • New link for Suneidojo

Contact Us | Legal Statement | Privacy Statement | SiteMap

Copyright © 2023 Axon® Development Corporation. All Rights Reserved. - Open Source Integrated Database and Programming Language