1 /* $XConsortium: InfoDialogManager.C /main/3 1996/04/21 19:32:17 drk $ */
5 * RESTRICTED CONFIDENTIAL INFORMATION:
7 * The information in this document is subject to special
8 * restrictions in a confidential disclosure agreement bertween
9 * HP, IBM, Sun, USL, SCO and Univel. Do not distribute this
10 * document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
11 * Sun's specific written approval. This documment and all copies
12 * and derivative works thereof must be returned or destroyed at
15 * Copyright 1993 Sun Microsystems, Inc. All rights reserved.
20 ///////////////////////////////////////////////////////////////////////////////
21 //////////////////////////////////////////////////////////////////////////////
22 // This example code is from the book:
24 // Object-Oriented Programming with C++ and OSF/Motif
27 // Prentice Hall, 1992
30 // Copyright 1991 by Prentice Hall
31 // All Rights Reserved
33 // Permission to use, copy, modify, and distribute this software for
34 // any purpose except publication and without fee is hereby granted, provided
35 // that the above copyright notice appear in all copies of the software.
36 ///////////////////////////////////////////////////////////////////////////////
37 //////////////////////////////////////////////////////////////////////////////
40 ///////////////////////////////////////////////////////////
41 // InfoDialogManager.C:
42 //////////////////////////////////////////////////////////
43 #include "InfoDialogManager.h"
45 #include <Xm/MessageB.h>
47 DialogManager *theInfoDialogManager =
48 new InfoDialogManager ( "InformationDialog" );
50 InfoDialogManager::InfoDialogManager ( char *name ) :
51 DialogManager ( name )
56 Widget InfoDialogManager::createDialog ( Widget parent )
58 Widget dialog = XmCreateInformationDialog ( parent, _name, NULL, 0 );