home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / g / gina15.zip / demos / small.C < prev    next >
C/C++ Source or Header  |  1992-02-27  |  1KB  |  47 lines

  1. #include <Gina/GnObject.h>
  2. #include <Gina/GnToolkit.h>
  3.  
  4. #include <Gina/GnApplicationShell.h>
  5. #include <Gina/GnPushButtonG.h>
  6.  
  7. extern "C" {
  8.     extern malloc_debug(int);
  9.     extern malloc_verify();
  10. }
  11.  
  12. int main(Cardinal argc, char **argv)
  13. {
  14.     //const char * const cp = "bls";
  15.  
  16.     malloc_debug(2);
  17.     
  18.     GnToolkit toolkit("Perf");
  19.  
  20.     malloc_verify();
  21.     //toolkit.AppShell().setR_allowShellResize(True);
  22.     //toolkit.AppShell().setR_deleteResponse(XmDO_NOTHING);
  23.     toolkit.AppInitialize(&argc, argv);
  24.     malloc_verify();
  25.     Gina_Debug_NL((void *)toolkit.AppShell().get_group_widget_id());
  26.     Gina_Debug("AppContext ="); Gina_Debug_NL((void *)toolkit.AppContext());
  27.  
  28.     malloc_verify();
  29.     GnPushButton b;
  30.     malloc_verify();
  31.     b.create(toolkit.AppShell(), "b");
  32.     malloc_verify();
  33.  
  34.     Gina_Debug("AppShell =");
  35.     Gina_Debug_NL((void *)toolkit.AppShell().get_group_widget_id());
  36.     malloc_verify();
  37.     toolkit.AppShell().realize();
  38.     Gina_Debug("AppContext ="); Gina_Debug_NL((void *)toolkit.AppContext());
  39.     malloc_verify();
  40.     toolkit.AppMainLoop();
  41. }
  42.  
  43.  
  44.  
  45.  
  46.  
  47.