MSM-Workstation
Create the First Set of Windows

Go back to the previous page in this sequence
Go back to the start of this chapter
Go back to the first page of this tutorial

Create a third window

This button will invoke a new window that contains just a "Document" component.

The "create action logic" for the window will be the same as the code for the second window:

(Click here to cut and paste this code.)

And the "create action logic" for the Document component will perform the actual initialization, this time by calling an application routine.

The action logic will also ensure that the document box fills the whole window.

(Click here to cut and paste this code.)

Finally, the "resize action logic" for the window has to make sure that the document box stays the same size as the window. (The same action logic will need to be inserted for the events "maximize" and "restore".)

(Click here to cut and paste this code.)

Note: The "resize" event is not the only event that is related to occasions when the window changes size. Similar code will have to be inserted for the events "maximize" (code) and "restore" (code).

At this point, the M[UMPS] code for the third window can be generated by compiling this window.

Click here to view the source code for the routine demodisp.

Go on to the next page in this sequence.