Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!sdd.hp.com!uakari.primate.wisc.edu!zazen!uwvax!astroatc!nicmad!rudie From: rudie@nicmad.UUCP (Glen Rudie) Newsgroups: comp.windows.x Subject: Need help porting from R2 to R4 Message-ID: <3973@nicmad.UUCP> Date: 20 Dec 90 15:19:04 GMT References: <9012141640.AA26351@expo.lcs.mit.edu> Reply-To: rudie@nicmad.UUCP (Glen Rudie) Organization: Nicolet Biomedical Instruments, Madison, WI Lines: 34 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 RTFM