Next: Working with resources Up: Explanation of the Previous: Line 6

There it is - an entire Motif program. Just to recap, this program created a shell widget name toplevel, and then created a label widget containing the string "hello" as it's child. It then realized the toplevel shell and started the event loop to handle events. That's all. It's a little messy when you see it the first time, but you will get used to it as time goes on. If none of this made sense, try reading it again now that you've read it once. Also try looking at mt3, which contains more information about resources. In the next tutorial, we'll spend time looking at resources and what they can do.


morbe@enstb.enst-bretagne.fr