/* Beispielapplikation fr ACS "Hello World" 27.9.91 Stefan Bachert */ #include #include static Awindow *hello_make (void *not_used); #include 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; }