Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!bu.edu!m2c!risky.ecs.umass.edu!dime!nikoulis From: nikoulis@venice.ecs.umass.edu (panos Nikoulis) Newsgroups: comp.windows.x.motif Subject: Text editing / Command line arguments for Motif applications Message-ID: <31405@dime.cs.umass.edu> Date: 1 Jun 91 00:15:28 GMT Sender: news@dime.cs.umass.edu Reply-To: nikoulis@venice.ecs.umass.edu (panos Nikoulis) Distribution: na Organization: University of Massachusetts, Amherst Lines: 40 Folks, I have two problems with Motif text widgets : (1) The key does not work as expected. Pressing it causes the character to the *right* of the cursor to be deleted. This makes the key useless when one wants to erase tha last character typed (one has to use the mouse or the arrow keys to move the cursor first). (2) One cannot use the key while pressing the key. (The key simply does not work.) I had these problems in the text areas of the XmPromptDialogs that I created for my application (on a DECstation 2100). Another problem : Using the standard command-line arguments to set the foreground and background colors does not seem to work (Motif ignores the color settings that I am specifying). The piece os code that I am using to initialize my display is as follows : XtToolkitInitialize(); app_context = XtCreateApplicationContext(); display = XtOpenDisplay(app_context, NULL, argv[0], "XMdemos", NULL, 0, &argc, argv); if (!display) { printf("Unable to open display\n"); exit(0); } The display opens successfully, but the colors are not right. The same code works fine in some of the Motif demo programs (e.g. xmlist) that I tried ! Any hints would be extremely helpful and appreciated. Thanks, --Panos Nikoulis Project Pilgrim University of Massachusetts, Amherst