I assume you've already found the qt demo that describes show/hide behaviour.
"I could put "exit 0" in a close event for the form, but that doesn't seem like a good way to solve the problem. " Its a good way if you have a main form that launches all others, and so can quit all other forms. If you don't have that architecture, formloader and formunloader methods could track a locale/global variable and then signal when its time to exit. Overall though, its unclear why showing the IDE "should be lava". For instance the IDE could be used to launch extention code (other forms) around your app/forms, or the user could just do other J stuff afterwards. If the issue is potential confusion about seeing the IDE, outputting to the console "MyFormName has closed... closing this window will exit MyProgName". ----- Original Message ----- From: Don Guinn <[email protected]> To: Programming forum <[email protected]> Cc: Sent: Sunday, July 20, 2014 2:51:53 PM Subject: [Jprogramming] Building standalone app Trying to figure out how to prevent the ijx window from appearing for making standalone applications. I found an example in Wiki Guides/ J8 Standalone. But the zip file of the project build for the application missing -(http://www.mcardle.wisc.edu/mprime/download/viewer-1.zip). I downloaded the installer of it for Windows and it ran; however, it is for an earlier version of J (5/14/2013) and browsing viewer.ijs is rather difficult and it crashes the current version of J. So I have a few questions. Obviously, what happened to that zip file? Is there a way to tell if the development environment is displayed? I can use (wd 'ide hide') to hide it and (wd 'ide show') to hide and show it. The viewer.ijs used a name "IDE" to tell, but that name is no longer defined. A test script below which runs a simple form does not show ijx until the form closes. The script _________________ wd 'pc test closeok;pn "Test"' wd 'cc xx static; cn "Text here"' wd 'pshow' wd 'ide hide' End of Script __________________ I went into Windows Associate a file type and told it that file type .ijs should run jqt.exe to run the above as standalone. If I remove the "ide hide" the IDE shows up immediately, so the hide helped. But then the IDE pops up when the form is closed. I could put "exit 0" in a close event for the form, but that doesn't seem like a good way to solve the problem. J6 had an option that when the last window closed J closed. That doesn't seem to be J8 works. Next question: The viewer description also mentioned using "fixed" to help control the size of something. cc editname edit;set editname fixed 60; It isn't in the current J. There is a new wd command and verb not documented - "smact". It simply runs the wd command with the argument "smact". It is not documented in "Driver Command Reference". What does it do? In the viewer.ijs script the verb "smact" was defined quite differently as a cd call. I am not trying to build apps for distribution and to run on all systems. I am trying to find a way to make standalone J apps to be used on a system with J8 already installed. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
