Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-04-10 Thread Eric Wing
On 4/9/18, Antonio Scuri wrote: > Hi, > > I may have solve the problem. At least at the system I was testing were > the problem is reproduced using that sample it was solved. > > It is on SVN. But it is actually very simple in iupgtk_dialog.c: > > #define iupABS(_x) ((_x)<0? -(_x): (_x)) > > st

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-04-09 Thread sur-behoffski
On 04/10/18 02:40, Antonio Scuri wrote: Hi, I may have solve the problem. At least at the system I was testing were the problem is reproduced using that sample it was solved. It is on SVN. But it is actually very simple in iupgtk_dialog.c: #define iupABS(_x) ((_x)<0? -(_x): (_x)) [...]

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-04-09 Thread John Spikowski
Great! I have been chasing that 'chost' for ages. Thanks Antonio for your amazing efforts with IUP and the community it has built. On Mon, 2018-04-09 at 14:10 -0300, Antonio Scuri wrote: >  Hi, > >  I may have solve the problem. At least at the system I was testing > were the problem is reproduced

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-04-09 Thread Antonio Scuri
Hi, I may have solve the problem. At least at the system I was testing were the problem is reproduced using that sample it was solved. It is on SVN. But it is actually very simple in iupgtk_dialog.c: #define iupABS(_x) ((_x)<0? -(_x): (_x)) static void gtkDialogGetWindowDecor(Ihandle* ih, in

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-04-04 Thread Antonio Scuri
At least, for a small difference at the bottom of the dialog I could reproduce it here. It is not always, but much easier to reproduce. I'll let you know the results. Best, Scuri Em qua, 4 de abr de 2018 00:43, Eric Wing escreveu: > Here's a different sample program that can trigger the bug

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-04-03 Thread Eric Wing
Here's a different sample program that can trigger the bug (simplified from a real program that is having problems.) No images this time, but only labels. Though there is a IupFill() and MINSIZE that seems to be needed to trigger the problem. Ihandle* label_description = IupLabel("Hello W

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-04-02 Thread Chris Matzenbach via Iup-users
Hi, For what it is worth, I have installed Arch linux on three separate machines in the past month, and on each one I have encountered this error. On some setups I had just gtk2 installed prior to this error, and on others I had both gtk2 and 3 installed. Testing it on my laptop running Arch righ

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-04-01 Thread Chris Matzenbach via Iup-users
Hi, For what it is worth, I have installed Arch linux on three separate machines in the past month, and on each one I have encountered this error. On some setups I had just gtk2 installed prior to this error, and on others I had both gtk2 and 3 installed. Testing it on my laptop running Arch righ

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-03-29 Thread Antonio Scuri
Notice that by setting IupSetAttribute(the_dialog, "SIZE", "HALFxHALF"); You will not be able to reduce the dialog content size from its initial size. This could be confusing you too. After SHOW set IupSetAttribute(the_dialog, "SIZE", NULL); To clear that limitation. Best, Scuri

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-03-27 Thread Eric Wing
On 3/16/18, Antonio Scuri wrote: > Hi, > > Don't worry I'll not give up on this. But I need a more concrete > situation. My tests are in an already slow virtual machine. > Thank you for not giving up on me. I appreciate it! Sorry for the delay. I've been sidetracked on other problems. FYI, t

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-03-16 Thread Antonio Scuri
Hi, Don't worry I'll not give up on this. But I need a more concrete situation. My tests are in an already slow virtual machine. I was thinking, would be interesting to analyze the dialog when the problem occur. Does it happens for which elements? Only a set of elements have problems?

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-03-14 Thread Eric Wing
I just wanted to clarify 2 points in my last message: > I've seen it on the following using the standard packages that come with each > OS: I was referring to GTK2 and GTK3 as the standard packages. I always have to build IUP since nobody has a package for it. > ccmake -DCMAKE_BUILD_TYPE=Debug

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-03-14 Thread Eric Wing
On 3/14/18, Antonio Scuri wrote: > Tested on the following configurations: > > CentOS 6.8 (x86) Linux26g4c6 (GTK 2.24) > Debian 8.3 (x86) Linux316 (GTK 3.14) > Oracle Solaris 11 (x86) SunOS511x86 (GK 2.20) > Ubuntu 10.10 (x86) Linux26g4 (GK 2.22) > Ubuntu 12.04 (x86) Linux32 (GTK 2.24) > Ubuntu

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-03-14 Thread Antonio Scuri
Tested on the following configurations: CentOS 6.8 (x86) Linux26g4c6 (GTK 2.24) Debian 8.3 (x86) Linux316 (GTK 3.14) Oracle Solaris 11 (x86) SunOS511x86 (GK 2.20) Ubuntu 10.10 (x86) Linux26g4 (GK 2.22) Ubuntu 12.04 (x86) Linux32 (GTK 2.24) Ubuntu 14.04 (x64) Linux313_64 (GTK 3.10) Ubuntu 15.04 (

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-03-13 Thread Antonio Scuri
I just saw your video. I have no idea. I will try to reproduce the problem here. Best, Scuri 2018-03-12 20:29 GMT-03:00 Eric Wing : > Hello, I'm bumping this old thread because it is still a problem. > > To refresh your memory, there is some bug with IUP GTK backends where > *sometimes* the s

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2018-03-12 Thread Eric Wing
Hello, I'm bumping this old thread because it is still a problem. To refresh your memory, there is some bug with IUP GTK backends where *sometimes* the sizing for a layout in a dialog is incorrect. It happens *sometimes*, so while I can reproduce it, it is hard to reproduce at will. When I launch

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2016-02-05 Thread Eric Wing
On 7/22/15, Eric Wing wrote: > On 7/22/15, Antonio Scuri wrote: >> I see that the natural size of the dialog is quite normal. The controls >> are not pushing the dialog size. It is the dialog that is sized in a >> weird >> way. Could be some computation that I done to estimate the decorations >

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2015-07-22 Thread Eric Wing
On 7/22/15, Antonio Scuri wrote: > I see that the natural size of the dialog is quite normal. The controls > are not pushing the dialog size. It is the dialog that is sized in a weird > way. Could be some computation that I done to estimate the decorations size > in "iupgtk_dialog.c". But being

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2015-07-22 Thread Antonio Scuri
I see that the natural size of the dialog is quite normal. The controls are not pushing the dialog size. It is the dialog that is sized in a weird way. Could be some computation that I done to estimate the decorations size in "iupgtk_dialog.c". But being not deterministic is complicated locate th

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2015-07-22 Thread Eric Wing
On 7/16/15, Antonio Scuri wrote: > Hi, > > That GLib warning output could be a mix of library versions, don't know > for sure. In IUP I don't set any of those properties. I use GtkSettings in > a 3 places only. Never seen those warnings in Linux. I found that gvim also triggers these same war

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2015-07-16 Thread Antonio Scuri
Hi, That GLib warning output could be a mix of library versions, don't know for sure. In IUP I don't set any of those properties. I use GtkSettings in a 3 places only. Never seen those warnings in Linux. About the first problem, the gridbox define its width based on the SIZELIN attribute, t

Re: [Iup-users] Problems with layout (sometimes too small, then too big)

2015-07-15 Thread Eric Wing
Two more points I forgot. First, for the second (too big) problem, I've only seen it on the Pi so far. I haven't done as heavy testing yet on the other platforms though. (The first problem I've seen on all platforms.) Second, on just the Pi, I'm seeing this GLib warning output when I launch my p

[Iup-users] Problems with layout (sometimes too small, then too big)

2015-07-15 Thread Eric Wing
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 i