!OSF/Motif: @(#)hellomotif.uil 1.7 90/07/31 !****************************************************************************** !******************************************************************************* !* !* Copyright 1989 OPEN SOFTWARE FOUNDATION, INC. !* Copyright 1989 Hewlett-Packard Development Company, L.P. !* !* THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT !* NOTICE AND SHOULD NOT BE CONSTRUED AS A COMMITMENT BY OPEN SOFTWARE !* FOUNDATION, INC. OR ITS THIRD PARTY SUPPLIERS !* !* OPEN SOFTWARE FOUNDATION, INC. AND ITS THIRD PARTY SUPPLIERS, !* ASSUME NO RESPONSIBILITY FOR THE USE OR INABILITY TO USE ANY OF ITS !* SOFTWARE . OSF SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY !* KIND, AND OSF EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES, INCLUDING !* BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND !* FITNESS FOR A PARTICULAR PURPOSE. !* !* Open Software Foundation is a trademark of The Open Software Foundation, Inc. !* OSF is a trademark of Open Software Foundation, Inc. !* OSF/Motif is a trademark of Open Software Foundation, Inc. !* Motif is a trademark of Open Software Foundation, Inc. !* Compaq is a registered trademark of Compaq Computer Corporation !* DEC is a registered trademark of Compaq Computer Corporation !* DIGITAL is a registered trademark of Compaq Computer Corporation !* X Window System is a trademark of the Massachusetts Institute of Technology !* !******************************************************************************* !******************************************************************************* module helloworld version = 'v1.0' names = case_sensitive procedure helloworld_button_activate(); object helloworld_main : XmBulletinBoard { controls { XmLabel helloworld_label; XmPushButton helloworld_button; }; }; object helloworld_button : XmPushButton { arguments { XmNx = 30; XmNy = 80; XmNlabelString = compound_string('Hello',separate=true) & 'World!'; }; callbacks { XmNactivateCallback = procedure helloworld_button_activate(); }; }; object helloworld_label : XmLabel { arguments { XmNlabelString = compound_string('Press button once',separate=true) & compound_string('to change label;',separate=true) & 'twice to exit.'; }; }; value goodbye_label : exported compound_string('Goodbye',separate=true) & compound_string('World!'); end module;