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 >
Wrap
C/C++ Source or Header
|
1992-02-27
|
1KB
|
47 lines
#include <Gina/GnObject.h>
#include <Gina/GnToolkit.h>
#include <Gina/GnApplicationShell.h>
#include <Gina/GnPushButtonG.h>
extern "C" {
extern malloc_debug(int);
extern malloc_verify();
}
int main(Cardinal argc, char **argv)
{
//const char * const cp = "bls";
malloc_debug(2);
GnToolkit toolkit("Perf");
malloc_verify();
//toolkit.AppShell().setR_allowShellResize(True);
//toolkit.AppShell().setR_deleteResponse(XmDO_NOTHING);
toolkit.AppInitialize(&argc, argv);
malloc_verify();
Gina_Debug_NL((void *)toolkit.AppShell().get_group_widget_id());
Gina_Debug("AppContext ="); Gina_Debug_NL((void *)toolkit.AppContext());
malloc_verify();
GnPushButton b;
malloc_verify();
b.create(toolkit.AppShell(), "b");
malloc_verify();
Gina_Debug("AppShell =");
Gina_Debug_NL((void *)toolkit.AppShell().get_group_widget_id());
malloc_verify();
toolkit.AppShell().realize();
Gina_Debug("AppContext ="); Gina_Debug_NL((void *)toolkit.AppContext());
malloc_verify();
toolkit.AppMainLoop();
}