Tutorials & Manuals > GLX Application Framework 1.1 > How Do I Update An Existing Application To Use the Latest Framework?

How Do I Update An Existing Application To Use the Latest Framework?

add glxapp_preloadApplication to application stack script.

Add glxapp_preloadApplication To application Stack Script

on glxapp_preloadApplication
   ## CALLED BEFORE ANY OF YOUR APPLICATION STACKS ARE LOADED INTO MEMORY.
   ## THIS IS A GOOD PLACE TO LOAD ANY STACKS INTO MEMORY THAT HAVE BEHAVIORS
   ## THAT YOUR APPLICATION STACKS REQUIRE.
end glxapp_preloadApplication

The first thing you should do is add the glxapp_preloadApplication handler to your application stack script. Add the handler directly after glxapp_firstRun.

Update glxappLauncher Stack Script

Media_1250086129816

You will need to update the glxappLauncher (named launcher.rev on disk) stack script of your application. You can't simply replace the stack file as you have configured all of your standalone settings for and you don't want to lose that information.

Launch Revolution (make sure your current application IS NOT open). Open the glxappLauncher.rev stack found in the framework helper stacks folder of the distribution folder.

Media_1250086215802

Open the glxappLauncher stack script (stack title is GLX Application). Copy the entire script to the clipboard. Remove the glxappLauncher stack from memory or simply quit and restart Revolution.

Media_1250086519857

Open your applications glxappLauncher stack (launcher.rev on disk) and replace the stack script with the clipboard contents.

After updating the script you will need to build a new Standalone using glxappLauncher.

Update glxapp_framework.dat File

Media_1248207664677

Replace the glxapp_framework.dat file in your application folder with the glxapp_framework.dat file included with the GLX Application distribution files.

Add glxappAuthenticate Substack to application Stack

Media_1248208008349

A new dialog stack named glxappAuthenticate has been added to the framework. This can be used when authenticating with servers that require a username, password and domain.

To add the stack to your application begin by opening the glxappAuthenticate.rev file located in the framwork_helper_stacks folder of the distribution folder.

Change mainStack To application

Media_1248208216771

After opening the stack change the mainStack property to application. Save the application stack.

Add At Least One Build Profile

Media_1252094616410

Check that you have at least 1 Build Profile defined in the Build Profiles tab. This is required in order for the Application Packager to function properly.

Update updater.gz On Your Server

Media_1255008309943

If you are using the auto update feature in the framework then you need to update the updater.gz file on your server. The file is located in the auto update folder of the application framework distribution.

Prev: Installing the Plugin Next: How Do I Create a New Application Based on the GLX Application Framework?

Comments (0)

Add your comment




E-Mail me when someone replies to this comment

Are you human?