rudie@nicmad.UUCP (Glen Rudie) (12/20/90)
XGurus:
My task is to port our X software from R2->R4. I have read that the
shell classes (Xt) have had some changes, but I don't know what it all
really means...
The first problem (I am assuming that there will be more ...) is we build a
dialog, at somepoint we relize it, find out how big it is and then pop it up
in the center of the screen. In R4 land now the XtGetValues (width, height x
and y) have large +-numbers. (The base width and base height had -1's)
Making it impossible to get the size and center it correctly. Changing window
managers doesn't help in displaying dialogs. (Although mwm is the only
window-manager that prevents the dialogs from going off screen, uwm,twm and
olwm all fail)
We rely quite heavily on the ability to relize a widget (unmapped) get its
size and then do positioning. The mechanism, of polling our creations for
their size, seems to be not working in many cases. This way of doing things
is pretty important since foreign language strings often are larger than
english, creating larger dialogs(widgets).
Solutions, Helpful Hints, SOL ?
If anybody has helpful information, it would really be appreciated.
email me at
{rutgers|harvard}!uwvax!astroatc!nicmad!rudie
ThanX
Glen Rudie
ps I RTFMconverse@EXPO.LCS.MIT.EDU (12/21/90)
> The first problem (I am assuming that there will be more ...) is we build a > dialog, at somepoint we relize it, find out how big it is and then pop it up > in the center of the screen. > We rely quite heavily on the ability to relize a widget (unmapped) get its > size and then do positioning. The mechanism, of polling our creations for > their size, seems to be not working in many cases. It might help to take a look at R4 xmh code, specifically, the file popup.c
pete@iris49.UUCP (Pete Ware) (12/22/90)
Make sure you are using Position for x,y and Dimension for width, height. Much R2 code declared them as int's. --pete Pete Ware / Biosym / San Diego CA / (619) 546-5532 uucp: scripps.edu!bioc1!pete Internet: bioc1!pete@scripps.edu