nikoulis@venice.ecs.umass.edu (panos Nikoulis) (06/01/91)
Folks,
I have two problems with Motif text widgets :
(1) The <Delete> key does not work as expected. Pressing it causes the
character to the *right* of the cursor to be deleted. This makes the
<Delete> 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 <Space> key while pressing the <Shift> key. (The
<Space> 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