Search Locate Previous Contents

Programming with Events

The second interesting object on the dialog box was a button labelled <Flip> Clearly this must reverse name when pressed, and it must also notify Causeway so that dependencies can be checked.

This time, use the right button to add Buttons>Action Button, set its caption, and then select Behaviour from the right-mouse menu:


Now you can be an APL programmer again!
If you followed through the example, you will have noticed that you just produced a fully-functional Windows application without learning any new Œ functions! In fact you only entered one line of APL code:

name„²name

... which was a simple statement of the problem. You may also have noticed that the buttons made themselves at a good default size, and perhaps you took advantage of the 4-pixel ‘snap to grid’ to line them up nicely. As you work through the rest of this short tutorial introduction, you should keep looking back and thinking “How would I have done this without Causeway” and you will begin to add up the hours and days it can save you. When you finish a piece of work, look back on it and rate it for good looks, ease of use, and reliability. Of course it will not go quite as fast as the same application coded from the ground up in Dyalog, but if your users want something now, something that looks right, something that works and keeps on working, then Causeway is for you.



© Copyright Causeway Graphical Systems Ltd 2001