[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
Moderator: | STAR::VATNE |
|
Created: | Mon Oct 30 1989 |
Last Modified: | Mon Dec 31 1990 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3726 |
Total number of notes: | 19516 |
374.0. "XGeometry accvio" by MU::PORTER (what's in a name?) Thu Mar 09 1989 23:57
I've entered this as a QAR, but maybe someone here has some ideas.
I get accvios from XGeometry if the input string has negative
x or y offsets. Strings with positive offsets work just fine.
XParseGeometry has no problems with negative offsets.
This is with VMS T5.2-40J, and whatever DECwindows comes with it.
This program shows the problem:
#include <decw$include/Xlib.h>
#include <decw$include/Xutil.h>
Display *dpy;
Screen *scr;
static ww, wh, wx, wy;
main()
{
dpy = XOpenDisplay("_WSA1:");
if (dpy==0) exit(-1);
scr = XDefaultScreenOfDisplay(dpy);
XGeometry(
dpy, scr, "=10x10-0-0", "=100x100+100+100",
1, 1, 1, /* bwidth, fwidth, fheight */
0, 0, /* xadder, yadder */
&wx, &wy, &ww, &wh
);
printf("x=%d y=%d w=%d h=%d\n", wx, wy, ww, wh);
}
T.R | Title | User | Personal Name | Date | Lines
|
---|