Begin Integrating Existing Stack
Now that I have created a new application it is time to integrate the existing Article Maestro.rev stack file into it.
Move Stack File Into Components Folder

Since I am storing all of the application files in the components folder I need to move the Article Maestro.rev stack file into that folder.

Open Stack

Now I switch to the Revolution IDE and open the Application Browser. I see a list of stacks pictured.
Note: Before you open your existing application stack you should confirm that there will be no stack name conflicts with any stacks already in memory. For example, if you have a stack named program then you would need to rename the program stack that is already open so as not to aggravate the engine.

I choose the File > Open Stack... menu item.

And I select the Article Maestro.rev stack file.
Edit Application Stack Script

Now that the existing Article Maestro application stack is open in memory I am going to update the GLX Application Framework application to use it. I begin by editing the script of the application stack.
Update kProgramStackName

The application stack script defines a constant named kProgramStackName. The constant specifies the stack that will be opened in the glxapp_openApplication handler further on down in the script.

I change this constant to the name of the application stack. In this case it is Article Maestro.
Change mainstack Of program Substacks

The framework plugin creates a stack named program with a few substacks. While not necessary, I am going to change the mainstack of any substacks to be the Article Maestro stack. I open the Property Inspector...

and change the mainStack property. I'm changing it to be Article Maestro.
The Result

The resources and about stacks are now substacks of the Article Maestro stack. The program stack no longer has any substacks.
0 Comments
Add your comment