Re: [Iup-users] IupGridBox issues with IUP 3.9 Windows 7 64 bits.

2013-12-13 Thread Antonio Scuri
  Just fixed and committed to CVS the expandchildren problem when children
contains an IupFill.

 

Best,

Scuri

 

From: Antonio Scuri [mailto:antonio.sc...@gmail.com] 
Sent: quinta-feira, 12 de dezembro de 2013 13:31
To: 'IUP discussion list.'
Subject: RE: [Iup-users] IupGridBox issues with IUP 3.9 Windows 7 64 bits.

 

Hi,

 

  I noticed two problems.

 

1)  It looks like that IupGridBox is miscalculating the size of its
children, then some elements are overlapping. But notice from the
documentation that "The column sizes will be based only on the width of the
children of the reference line, usually line 0. The line sizes will be based
only on the height of the children of the reference column, usually column
0." So actually the overlapping is happening because the reference line
elements are smaller than the overlapping elements.

 

2) The expandchildren attribute will work only if the child is not a
container. That's because containers are already expandable, so
expandchildren is useless in this case. I should add a note in the
documentation about this.

 But expandchildren is also incorrectly affecting the child layout, so
the IupFill expansion is not being correctly computed. I guess this
shouldn't happen.

 

  While I check this, if you just remove the expandchildren attribute from
the gridbox the fill will correctly position your elements in the hbox, the
label to the left and the text to the right. And all overlapping should be
solved. And all frames will have the same width.

 

Best,

Scuri

 

From: Benoit Germain [mailto:bnt.germ...@gmail.com] 
Sent: quinta-feira, 5 de dezembro de 2013 14:43
To: IUP discussion list
Subject: [Iup-users] IupGridBox issues with IUP 3.9 Windows 7 64 bits.

 

Hello,

I am trying to generate an options edition interface from a set of
descriptions (see attached files).

The idea is to take several options and sort them by category.

Each individual item creates a hbox that contains a label and a text
control.

All boxes belonging to a given category are grouped in a gridbox, which is
enclosed inside a frame, and the frame is child to an expander.

I want the following:

* all frames should have the same width (which implies all gridboxes should
have the same width too, which in turn means that each column has the same
width for all gridboxes as well, since they have the same number of
columns).

* Inside each grid cell, I want each label to be left-justified, and each
text control to be right-justified. To do so I insert an IupFill between the
label and text control in each hbox (see iupargs.lua line 25). 

* Each label has a tooltip that comes from the item description.

 

Instead, I observe the following:

Unless I add IupFill items in the boxes, the frames don't share the same
width although I asked everyone to expand as much as they can. I would think
that the widest gridbox would drive the minimal width of the dialog, which
would in turn enable the other gridboxes to expand to that width since it is
available?

OTOH, when I add the IupFill, they seem to operate at the right of the text
control instead of between label and text.


If I omit the IupFill, the frames don't expand to fill the dialog's width.
There is also and issue with the 4rth column in the "Gameflow" and "Network"
categories: they don't start far enough on the right and are partially
overlapped by the 3rd column.

 

Also, the tooltips don't work with the console application lua52.exe, but
maybe that's normal because the old native controls don't support them?

It is likely that there is still something that I don't understand about all
this expand logic, but the IupFill not appearing between the two controls
feels like a bug, as well as the overlapping columns.

 

Regards,

 

 

-- 
Benoit.

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] canvas line

2013-12-13 Thread Antonio Scuri
 Hi,

  Thanks to your very interesting sample code was very easy to identify the
problem.

  There are two things happening.

  An extra pixel in white at the top. And missing pixels at bottom.

  The second case occurs in REPLACE and XOR modes. And it is inherent of the
Win32 API. 

  The extra pixel at the top was a bug in CD. We draw an extra pixel to
complement the line drawn by the Win32 API. But when line width is more than
one it looks odd. And when in XOR it looks worse.

  So I just add a test to avoid those situations. Fixed and committed to
CVS.

  Thanks for the report and for the sample code.

Best,
Scuri

> -Original Message-
> From: Karagy [mailto:kar...@mail.ru]
> Sent: quinta-feira, 12 de dezembro de 2013 16:30
> To: IUP discussion list.
> Subject: [Iup-users] canvas line
> 
> Hi, all!
> 
> WinXP 32bit, iuplua 3.6 - 3.9.
> Playing with iup.canvas, I found that the ends of the vertical lines near
the
> boundaries of the canvas looks strange. The effect becomes noticeable for
a
> line width of 2 or more. Unpainted point becomes visible at the upper end
of
> the line. At the lower end of the line appears vertical indentation height
1.
> Effect does not depend on the presence of border canvas.
> 
> See example in attach.
> 
> 
> --
> Regards,
> 
> Karagy


--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users