Hello Watts,
In izibasic how do you get a second window to open(or even invoke one) and add controls to it and be able to close that and return to the first one.Here, you have 2 options:
#1. iziBasic "native"The principle in iziBasic is that all of the GUI work is done in one main form.
So, to switch from one screen to another one, you have to work this way:
1. Create your GUI objects for screen 1
2. When you want to switch to screen 2 the first time, HIDE all objects of screen 1 and create the GUI objects for screen 2
3. When you want to switch back to screen 1, HIDE all objects of screen 2 and SHOW objects of screen 1
4. When you want to switch to screen 2 again, HIDE all objects of screen 1 and SHOW objects of screen 2
... and so on, having an events management loop to provide this move between screens!
The NekoCat sample program shipped with iziBasic is a very good example of this way of doing with a main form displaying a little cat running after food and an options form to change the cat's behavior.
#2. iziBasic + Palm resourcesWith BIRD or RsrcEdit, you create a resource file. In this resource file, you create a form and all of its objects. Then you include this resource file in your iziBasic project with the RESOURCEFILE compiling directive. Calling this form is made with the OPENFORM statement and, to come back to the main form, you call the CLOSEFORM statement.
I am having trouble opening another program from a program that I have generated.Maybe, check the syntax you used for the RUN statement.
If anybody could direct to some simple code examples or a collect of public domain snippets that I could to my collection of tools other than the ones that came with the full version of izibasic.Please, allow me to tell you to give a look to the source code examples shipped with iziBasic, for instance NekoCat
There are also other great sample software on
this page.
Also it would be nice if there was a PC based editor that I could use that was izibasic specific.I agree! ... even though coding directly on a real device with the resulting possible crashes and soft resets can be so much fun
Apart from kidding, anybody could add very quickly the right code syntax highlighting plugin to a software like PsPad. Used in conjunction with TL-PDB for instance to build the DOC file format, that could make it.
The ultimate editor would offer both code syntax highlighting and direct editing of a DOC file... but I do not see one yet around
Cheers,
aldweb