Page 1 of 1

How to Retain Main Application Icons?

Posted: Tue Dec 22, 2015 6:34 pm
by deeverd
Hello Forum,

For years, I've always made desktop software tools for myself, and only last night discovered the issue on every OS with saving changes in a standalone. According to all the instructions, I made an executable launcher program (splash screen) that calls up the LiveCode main application, and everything worked well except for one issue...

How can one retain the icons in the main application so that they show when the program runs? Most of my buttons had icons for exit, help, print, export, and so forth.

The icons I used in the main application (the part that was not saved as a standalone but was bundled as the "Main Application.LiveCode" file in the same folder with the standalone launcher) consisted of MetaCard compatible icons that are found in the 7.0.6 and earlier versions of LiveCode. I should also mention that this is for the newest Windows OS.

I realize that the main application, not being a standalone (so that it can save changes to text fields), has no library in it, so it doesn't retain the images of the button icons. Is there a way of making sure the icons can be seen?

All the best,
deeverd

Re: How to Retain Main Application Icons?

Posted: Tue Dec 22, 2015 6:56 pm
by Klaus
Hi deeverd,

I ususally add this line to my standalone stack(s) (or your stack that contains the icons)
...
start using this stack
...
This also makes every icon in that stack available to all other stacks opened in that "session"!


Best

Klaus

Re: How to Retain Main Application Icons?

Posted: Tue Dec 22, 2015 7:51 pm
by deeverd
Thanks Klaus,

Your advice caused a sudden realization on my part, and now the program works and looks just fine. What I had done was build an invisible launcher.exe standalone that had no icons in it. However, once I put some icons into my launcher, it caused all the icons on my main application to also be visible.

Thanks again for your help and advice and sample line of code.
Hope you have a very Merry Christmas.

All the best,
deeverd