On Thu, 18 Aug 2011 01:14:22 +0200 Nicolas Aguirre <[email protected]> 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. > * Second problem, when i run it on illume, the size of the dialog box > is 1x1 pixel. Not very usefull .... here the result : > http://www.deco-crea.com/files/2011-08-18-004550_480x800_scrot.png you > can find the 1x1 box on the center of the screen (this time it is > centered :P) hmm i suspect this is an illume issue and it isnt handling a change in min size properties after show > * Third problem, when it's displayed my box looks bad, i would like > more space between elements, and wouls like to add some pading arround > my main box. I tried to use the elm_box_padding_set, but it add > padding only between elements and not before or after last elements. > My second attempt [test2.c attached] was to add a layout, with a > swallow and manage the padding in edje. But if i do that, the box > swallowed in my edje part do no take all the space. It's like it was > always taken the min size. I really don't see how to get a dialog box > which is correctly displayed in e17 and in illume and wich looks good. > So if you could help me please it would be great:) if you want padding i highly suggest putting all elements u want padding around in a frame ans use the pad styles of frame (pad_small, pad_medium, pad_large from memory - it's documented). this way theme defines just how much padding small/med/large is. and yes for box padding == the padding in between elements. > Regards, > -- > Nicolas Aguirre > Mail: [email protected] > Web: http://enna.geexbox.org > Blog: http://dev.enlightenment.fr/~captainigloo/ -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ Get a FREE DOWNLOAD! and learn more about uberSVN rich system, user administration capabilities and model configuration. Take the hassle out of deploying and managing Subversion and the tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
