DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦7859fe3bf⟧ TextFile

    Length: 446 (0x1be)
    Types: TextFile
    Names: »label.c«

Derivation

└─⟦a0efdde77⟧ Bits:30001252 EUUGD11 Tape, 1987 Spring Conference Helsinki
    └─ ⟦526ad3590⟧ »EUUGD11/gnu-31mar87/X.V10.R4.tar.Z« 
        └─⟦2109abc41⟧ 
            └─ ⟦this⟧ »./X.V10R4/Toolkit/DECToolkit/examples/label.c« 

TextFile

/*** example program of a label ***/
#include <X/Xlib.h>
#include <stdio.h>
#include "Toolkit.h"
Window w;
Targ args[10];

main()
{
	XEvent ev, *event;
	int i = 0;

	if (XOpenDisplay("") == 0)
		printf("error opening display\n");

	TSetArg(args[i], T_LABEL_STRING, "Hello People");
	i++;
	TSetArg(args[i], 0, 0);
	w = TCreateLabel(RootWindow, args);

	XMapWindow(w);
	event = &ev;
	while (1) {
		XNextEvent(event);
		TDispatchXEvent(event);
	}
}