Path: utzoo!attcan!uunet!husc6!mailrus!ames!eos!riacs!davy From: davy@riacs.edu (Dave Curry) Newsgroups: comp.windows.x Subject: Re: XtMainLoop -vs- XtAppMainLoop Message-ID: <1155@hydra.riacs.edu> Date: 19 Dec 88 23:44:24 GMT References: <8812191042.AA16226@tub.UUCP> Reply-To: davy@hydra.riacs.edu.UUCP (Dave Curry) Organization: Research Institute for Advanced Computer Science Lines: 29 In article <8812191042.AA16226@tub.UUCP> net@TUB.BITNET (Oliver Laumann) writes: >> To start an application, you call XtToolkitInitialize to initialize the >> toolkit, XtCreateApplicationContext to create an application context, and >> XtAppCreateShell to create an application shell. > >However, as I have pointed out earlier, in X Version 11 Release 3 this >only works if you are not using widgets that register resource type >converters (such as, for instance, the Athena `clock' widget). It's also true, unfortunately, for more commonly used widgets like Text widgets, as I discovered this afternoon after converting my program to use the above sequence. Trying to put a scroll bar on a text widget works fine when using XtInitialize/XtMainLoop. When using the above sequence however, you get an error message: X Toolkit Warning: No type converter registered for 'String' to 'EditMode' conversion. and you get a Text widget with no scrollbar. Guess I'll go back to XtInitialize/XtMainLoop for awhile. --Dave P.S. - Note to X Consortium folks: I have a short program (< 100 lines) which demonstrates the above, if you want it.