Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-07

Bug in TStringGrid

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Yoyong Hernan

Hi all,
�
I think there is a bug in TStringGrid.
�
TStringGrid�Change the value of colcount
to zero causes "List index exceeds bounds (1)" to appear. Clicking Ok does nothing, clicking cancel crashes lazarus.
�
Another TStringGrid
bug�Synopsis�Highlighted cells are marked with line around the boundary with dased lines. Moving the arrow keys (arrow down or left) leaves the previously highlighted cells with the red line dased boundaries. But when scrollbar thumbs move, the highligthing left is gone. Using the mouse seems to not have a problem. Note: make sure that you have enough rows and columns so that the scrollbars are shown.
�
Regards,
�
Yoyong
�

Reply by email

Manuel Pérez López
to Jesus Reyes: --- Yoyong Hernan escribi�: > Hi all, I did forget this one. It's fixed now. However…

Hello:

I do not know if there is a bug in Lazarus or FPC. it's about the method Pie.

Delphi definition:

The method Pie draws a section of an ellipse, limited by the rectangle (X1, Y1) and (X2, Y2) on the indication surface. The drawn section is determined by two lines, which outgoing from the center of the ellipse by the points (X3, Y3) and (X4, Y4) to lead.

I did not find the FreePascal definition of a method Pie, and I suppose that it is the same.

But, this does not work properly. It draws a fool pie. Example:

PaintBox1.Canvas.Pie( 200,200,400,400,400,300,300,200);
does not draw the correct 1/4 circle.

Any idea?

I'm working with Lazarus from CVS (20030708) and preFPC1.08, Linux SO.

Saludos
Manuel P�rez L�pez

Reply by email

Jesus Reyes
to Yoyong Hernan: � I think there is a bug in TStringGrid. � TStringGrid�Change the value of colcount…

--- Yoyong Hernan escribi�: > Hi all,

Show quoted text 8 lines
I think there is a bug in TStringGrid. TStringGrid Change the value of colcount to zero causes "List index exceeds bounds (1)" to appear. Clicking Ok does nothing, clicking cancel crashes lazarus.

I did forget this one. It's fixed now.

Show quoted text 13 lines
Another TStringGrid bug Synopsis Highlighted cells are marked with line around the boundary with dased lines. Moving the arrow keys (arrow down or left) leaves the previously highlighted cells with the red line dased boundaries. But when scrollbar thumbs move, the highligthing left is gone. Using the mouse seems to not have a problem. Note: make sure that you have enough rows and columns so that the scrollbars are shown. Regards, Yoyong

However this one I can't reproduce or seen before, probably because I have done some internal changes, I will send a patch to Mattias as soon as I fix some other things

Jesus Reyes A.

_________________________________________________________ Do You Yahoo!?
La mejor conexi�n a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx

Reply by email

Mattias Gaertner
to Jesus Reyes
Show quoted text 21 lines
Hello: I do not know if there is a bug in Lazarus or FPC. it's about the method Pie. Delphi definition: The method Pie draws a section of an ellipse, limited by the rectangle (X1, Y1) and (X2, Y2) on the indication surface. The drawn section is determined by two lines, which outgoing from the center of the ellipse by the points (X3, Y3) and (X4, Y4) to lead. I did not find the FreePascal definition of a method Pie, and I suppose that it is the same. But, this does not work properly. It draws a fool pie. Example: PaintBox1.Canvas.Pie( 200,200,400,400,400,300,300,200); does not draw the correct 1/4 circle.

Fixed

Mattias

Reply by email