Previous page Select page

Next steps ...

Well, once again, that's it for this chapter. In the next one, we are going to move a good deal further. We'll deal with the whole issue of conditional jumps, expanding even more on the pegObject routine. This, together with the shift operations, enables us to implement button click handlers - something which really starts to make Windows cook.

Summary

In this chapter, we have started to use static controls - in this case buttons. We have learned to use some more EasyCode methods and made use of the SUB mnemonic. This has allowed us to create a neat resize handler which allowed us to move the button whenever the window was resized. Having done this, we then turned our attention to making this into a routine called pegObject which could be called from the resize handler. We saw, however, that making it more reusable was a goal which we should move towards. We gave pegObject a frame and parameters to allow us to peg any button, irrespective of its name, at the bottom right of the screen. This also allowed us to learn about local variables. Finally, we took the step of saving the routine as a module which could then be included in any program in the future. This gives us some great building blocks for making great code in the future.

Previous page Select page