home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Vectronix 2
/
VECTRONIX2.iso
/
FILES_07
/
ACS.ZIP
/
ACS
/
HELLO
/
HELLO.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-01-28
|
922b
|
49 lines
/*
Beispielapplikation für ACS
"Hello World"
27.9.91 Stefan Bachert
*/
#include <acs.h>
#include <hello.h>
static Awindow *hello_make (void *not_used);
#include <hello.ah>
static Awindow *hello_make (void *not_used)
/*
* Erzeuge Hello World Fenster
*/
{
Awindow *wi;
wi = Awi_create (&HELLO);
if (wi == NULL) return NULL;
(wi-> open) (wi); /* öffne gleich, auch als accessory */
return wi;
}
int ACSinit (void)
/*
* Doppelklick auf NEU erzeugt ein neues Fenster
*/
{
Awindow *window;
window = Awi_root (); /* root window */
if (window == NULL) return FAIL; /* lege NEU Icon an */
(window-> service) (window, AS_NEWCALL, &HELLO. create);
window = &HELLO;
(window-> create) (NULL); /* sofort ein Fenster erzeugen */
return OK;
}