Search Locate Previous Contents

Running Causeway from QuadSE

The various namespaces shipped with CausewayPro are designed to be easy to rename and relocate. You might like to move both the Designer and Picture Strip editor into your Dyalog session, to avoid saving these in every workspace you are in the process of building. To do this, simply relocate the namespaces ...

)cs ŒSE
'' ŒNS '#.Designer' '#.Strip'
)cs
)erase Designer Strip

and edit Dbx to refer to ŒSE.Designer as appropriate. If you want to run DbxLoc from the session, this is equally simple, and you might consider setting a function key to save some typing if you use it regularly.

Moving the CPro namespace
Again, you can relocate the namespace with no problems, however you must carry out two extra steps before you try to run it:

  1. Tell the Designer where to find Causeway
  2. Re-initialise Causeway

You will find a variable in the designer namespace called Designer.‘causeway – you must reset this to give the full path name to the new location of the CPro namespace:

ŒSE.Designer.‘causeway„'ŒSE.Causeway'

You must now run the Causeway Initialise function which will update the class libraries with the same information:

ŒSE.Causeway.Initialise ''

If you use the progress bar namespace, you should also reset ‘causeway here as for the Designer.

Moving the class library
You can run one or all of your class libraries from ŒSE – a possible strategy would be to run the Causeway-supplied classes from here and your own from the saved workspace. If you want to move the class library Class to be ŒSE.StdClass, you can use ŒNS as normal, then you must tell Causeway where the class libraries are, for example:

ŒSE.Causeway.SetClassPath 'ŒSE.StdClass' '#.UserClass'
ŒSE.Causeway.Build

At this point, you should be able to run the Designer as normal, design a simple form and run a test action on a button. Note that the CProQA workspace is shipped with an Init function which is used to reset everything just before a build is saved or shipped. This will need to be changed to take note of the new paths.

Application code
You should have no problems with actions in dialogue boxes if you stay with the recommended method of referring to all Causeway functions as {del}function-name. These are resolved at runtime and you need take no other action to have them point to the correct namespace.

You might like to cover any calls to #.CPro.Make, Call, Notify and so on with one-line functions – do NOT use assigned functions here as these can fail badly if their target namespace is moved or deleted.



© Copyright Causeway Graphical Systems Ltd 2001