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

Standalone use and PersistentWindow

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

  • This topic has 3 replies, 3 voices, and was last updated 10 years, 9 months ago by amckinlay.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • April 23, 2012 at 9:25 pm #725
    emilevanpassel
    Participant

    I read in the User’s Manual that using PersistentWindow is one way to make a Suneido application standalone. But what other options are there? Is using PersistentWindow the preferred way?

    April 24, 2012 at 12:02 am #922
    amckinlay
    Keymaster

    PersistentWindow just remembers the size and position of the window(s) from one session to another. Otherwise, it is just a normal Window. The IDE uses PersistentWindow.

    You basically have the same options as for any Windows application – either a Dialog or some kind of Window.

    For our own applications we use BookControl in a PersistentWindow, with a login dialog first.

    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.

    April 28, 2012 at 1:18 am #924
    amckinlay
    Keymaster

    Nice, thanks Jos

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.
Log In

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