rem: WMScreenMainLoop(scr);
add: WMThawText(text); WMRefreshText(text, 0, 0);   WMSetViewNotifySizeChanges(WMWidgetView(win), True); WMMapSubwidgets(win); WMMapWidget(win);  WMScreenMainLoop(scr);
context: main(int argc, char **argv){	Display		*dpy;	WMScreen	*scr;	WMInitializeApplication("WMText", &argc, argv);	dpy = XOpenDisplay(NULL);	if(!dpy) exit(1);	scr = WMCreateSimpleApplicationScreen(dpy);	win = WMCreateWindow(scr, "WMText Test");	WMRealizeWidget(win);	WMResizeWidget(win, 500, 300);	//WMResizeWidget(win, 900, 600);	WMSetWindowTitle(win,"WMText Test");	WMSetWindowCloseAction(win, Close, NULL);	text = WMCreateText(win);	WMRealizeWidget(text);	WMResizeWidget(text, 480, 280);	WMMoveWidget(text, 10, 10);	WMSetTextUseFixedPitchFont(text, False);	WMSetTextMonoFont(text, False);	WMSetTextParser(text, HTMLParser);	WMSetTextEditable(text, True);	WMFreezeText(text);	if(1){		FILE *f = fopen("./wm.html", "r");		char data[1024];		if(f) { 			while(fgets(data, 1022,f)) 				WMAppendTextStream(text, data);			fclose(f);		} else {  			WMAppendTextStream(text, "<i>can't</i> open the <u>wm.html</u> file, but here's a <B>text <I>stream <img src=foo.bar></I><BR>that</B> <U>needs</U> parsing"); 	}	}			//WMPrependTextStream(text, "this is prepended\n");//WMAppendTextStream(text, "blueplanet.rtf");        	WMThawText(text);	WMRefreshText(text, 0, 0);/*	WMAddNotificationObserver(NotificationObserver, win,        WMViewSizeDidChangeNotification, WMWidgetView(win));*/	WMSetViewNotifySizeChanges(WMWidgetView(win), True);	WMMapSubwidgets(win);	WMMapWidget(win);	WMScreenMainLoop(scr);}