I am having problems with the layout system. I am using gridboxes, vboxes, hboxes, and zboxes. I am also using the user preferences feature to remember and restore window sizes and positions.
Screen shots are inline. These are from the Raspberry Pi 2 (Raspian). The desktop is LXDE and everything is GTK2 as far as I know. My app is kind of a wizard launcher. There is one "dialog" (Iup nomenclature). I load all the different views/pages at initialization and put them into a zbox. I switch between the pages using the zbox. This is the opening screen for the very first time (no user preference exists yet). http://playcontrol.net/tempdownload/iup_screens_pi/iup_initial_launch.png (This is made with 2 vboxes of image button + label, wrapped in a final hbox.) This is the New Project page immediately following (still first launch) http://playcontrol.net/tempdownload/iup_screens_pi/iup_initial_new.png Notice that the window is a just a little too small. There is a button cut-off after the label for "Project Directory" These are grid boxes in the center. The Project Directory line contains an gridbox nested in the main grid box, comprised of the label and the button). This is the Gen Proj page following the above page (still first launch) http://playcontrol.net/tempdownload/iup_screens_pi/iup_initial_gen.png Again it is cut off. There are nested gridboxes again to deal with the Purge/Generate buttons and some other stuff. (There is a hidden label and a hidden progress bar in the layout.) And there is a final vbox containing IupFill, the main gridbox stuff, and another IupFill to center everything.) Resizing the window to show everything looks like this: http://playcontrol.net/tempdownload/iup_screens_pi/iup_resize_gen.png So my first question, is how can I fix this so my initial launch fits everything? I noticed that different window managers and Microsoft Windows have different sizes so the sizes are sometimes okay, sometimes not. Second, I think I'm hitting a scary bug. Sometimes (not all the time), when I launch the app, the content view size is completely messed up and it is like the content view is maximized but my window is not. So here is my initial launch screen (the one with two buttons) in a bad launch. http://playcontrol.net/tempdownload/iup_screens_pi/iup_bad_launch.png If I maximize the window, the content still doesn't fit on screen http://playcontrol.net/tempdownload/iup_screens_pi/iup_bad-max_launch.png (notice the labels are still cut off) And here is the Generation page http://playcontrol.net/tempdownload/iup_screens_pi/iup_bad_gen.png and maximized: http://playcontrol.net/tempdownload/iup_screens_pi/iup_bad-max_gen.png (notice the two back/restart navigation buttons at the bottom are cut off) I don't know what triggers this problem. It seems kind of random. I'm usually resizing/quitting and relaunching until it goes away. I think I can live with the initial launch size too small problem. But this secondary too big problem I think I'm going to need a work-around for. Any suggestions are greatly appreciated. Thanks, Eric ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users