Hi Again,
I have spent some time attempting to put a structure for a new application together. My aim is to have a splash stack that opens the other main stacks that do the real work.
The code listed below is in the PreOpenStack of the Splash stack. My first attempts with the command '
start using "stackname" ' failed because I omitted the full path to the stack on my hard drive. This failure led me to add the other stacks as stack items listed in the build settings of my splash stack. At this point the three start using commands stopped throwing an error but the stacks are not always being loaded (why?

) as they do not always appear in the browser.
Code: Select all
On preOpenStack
start using "Wisper_Program_UI"
start using "Wisper_Application"
start using "Wisper_Components"
end preOpenStack
Next I added a single open command to the routine:
Code: Select all
On preOpenStack
set the itemDel to slash
put (item 1 to -2 of the effective filename of this stack) & "/" into tFilePath
open stack tFilePath & "Wisper_Program_UI" in new window
start using "Wisper_Program_UI"
start using "Wisper_Application"
start using "Wisper_Components"
end preOpenStack
The addition of this command seems to ensure that all three stacks are displayed in the application browser (why?

) but it does not actually open the stack (why?

).
My aim is to be able to double click on the splash stack and cause all the stacks associated with the application to be loaded into the IDE. Have I done something wrong and/or is there a better way?