home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / n / newmarch.zip / ARROW.C < prev    next >
C/C++ Source or Header  |  1992-09-08  |  2KB  |  48 lines

  1. /* Author:   $Author: jan $
  2.  * File:     $Source: /usr/usrs/jan/desktop/X_Book.boo/programs/RCS/arrow.c,v $
  3.  * Date:     $Date: 1992/09/09 00:09:46 $
  4.  * Revision: $Revision: 1.1 $
  5.  */
  6.  
  7. #include "copyright.h"
  8.  
  9. #include <Xm/ArrowB.h>  
  10.         
  11. char Class_name[] = "Arrow";     
  12.         
  13. main(argc, argv)        
  14. int argc;
  15. char **argv;
  16. {       
  17.         Widget toplevel, arrow_widget;  
  18.                 
  19.         /* Initialize the intrinsics  with 
  20.            a toplevel widget    
  21.         */      
  22.         toplevel = XtInitialize (NULL, /* application
  23.                                           name    */
  24.                          Class_name,   /* class name */
  25.                          NULL,         /* options */
  26.                          0,            /* number of
  27.                                           options */
  28.                          &argc, argv); /* command line
  29.                                          args */
  30.          /* Create an arrow widget with the
  31.             toplevel as manager */
  32.         arrow_widget = XmCreateArrowButton (
  33.                            toplevel,   /* parent */ 
  34.                            "an_arrow", /* name of
  35.                                           widget*/
  36.                            NULL,       /* resource 
  37.                                           arguments */
  38.                            0);         /* number of
  39.                                           args */
  40.         XtManageChild (arrow_widget);
  41.                 
  42.         /* display all of the widgets */        
  43.         XtRealizeWidget (toplevel);     
  44.         
  45.         /* enter the main processing loop */    
  46.         XtMainLoop ();
  47. }
  48.