From kde-devel Fri Oct 29 20:51:03 1999 From: David Faure Date: Fri, 29 Oct 1999 20:51:03 +0000 To: kde-devel Subject: Re: Screen width and height X-MARC-Message: https://marc.info/?l=kde-devel&m=94123026302349 On Fri, Oct 29, 1999 at 09:19:35PM +0200, Markus Goetz wrote: > Hi > > how can i get the height and width of the screen in pixels (so that i can > center my window) Is it for a real window or a dialog box ? I think dialog boxes with parent = 0L automatically centered. But generally, for windows, it all depends on the user's settings (smart placement, ...) so better respect that. -- David FAURE david@mandrakesoft.com, faure@kde.org http://home.clara.net/faure/ KDE, Making The Future of Computing Available Today