|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T
Length: 692 (0x2b4)
Types: TextFile
Names: »TextDiskSource.c«
└─⟦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/TextDiskSource.c«
/* This is an example program of a text subwindow with a disk source */
#include <X/Xlib.h>
#include <stdio.h>
#include "Toolkit.h"
Window w;
Targ args[10];
main()
{
XEvent ev, *event;
int i = 0;
/*** open display ***/
if (XOpenDisplay("") == 0)
printf("error opening display\n");
/*** create the text subwindow ****/
TSetArg(args[i], T_TEXT_SOURCE, TCreateDiskSource("disksource.out"));
i++;
TSetArg(args[i], T_TEXT_WIDTH, 350);
i++;
TSetArg(args[i], T_TEXT_HEIGHT, 200);
i++;
TSetArg(args[i], 0, 0);
w = TCreateTextSW(RootWindow, args);
/*** map and handle the events ***/
XMapWindow(w);
event = &ev;
while (1) {
XNextEvent(event);
TDispatchXEvent(event);
}
}