From: Sebastian D. <sd...@ta...> - 2011-08-18 07:07:53
|
On 08/18/2011 08:17 AM, Carsten Haitzler (The Rasterman) wrote: > On Thu, 18 Aug 2011 01:14:22 +0200 Nicolas Aguirre<agu...@gm...> > said: > >> Hi, >> >> I'm trying to create a simple dialog window. Just a dialog which >> contains a label, an entry and a button bar with ok and cancel. That's >> seems so simple to do, but i can't do it. The solution must be simple, >> but i can't find it. >> I made a simple test program [test1.c attached], With a main window >> and a button. When you click on this button, the dilaog box is >> launched. >> >> * First problem, when i run it on e17, the dialog box is not centered, >> i don't know if it should be, but i always seen dialog boxes centered >> on his parent. > > this is partly an e17 and partly an elementary problem. > > most toolkits EXPLICITLY place their dialog boxes and try place them centered > over the parent win. elementary doesnt try. e17 also has no logic to handle an > "unplaced" dialog and auto place it centered over the parentwindow. Doesn't netwm dialog windows get centered? S. |