Sign in Join

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

Mailing lists / lazarus / 2011-03

Scrolling Wincontrol

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Torsten Bonde Christiansen

Hi List.

After updating to latest trunk version of Lazarus i've experience something quite strange.
I'm using: Lazarus 0.9.31 r30067M FPC 2.4.2 x86_64-linux-gtk 2

I've created a link to a gif that demonstrates the problem clearly. All I have done is added a TScrollBox and two buttons, clicking on button created a TEdit, clicking the other creates a TLabel.

Gif can be found here
<http://www.bondechristiansen.net/img/ScrollingWinControl.gif>.

It seem that this problem is present from revision 29944 and onwards?

Kind regards,
Torsten Bonde Christiansen.

== source code ==

unit main;
{$mode objfpc}{$H+}
interface

uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,

   ExtCtrls;
type
   { TForm1 }
   TForm1 = class(TForm)
     Button1: TButton;
     Button2: TButton;
     Panel1: TPanel;
     ScrollBox1: TScrollBox;
     procedure Button1Click(Sender: TObject);
     procedure Button2Click(Sender: TObject);
   private
     { private declarations }
   public
     { public declarations }
   end;
var
   Form1: TForm1;
implementation
{$R *.lfm}

{ TForm1 }

procedure TForm1.Button1Click(Sender: TObject);
var
   Lbl: TLabel;
begin
   Lbl := TLabel.Create(ScrollBox1);
   Lbl.Name := 'lbl' + inttostr(ScrollBox1.ComponentCount);
   Lbl.Caption := 'Label... ' + inttostr(ScrollBox1.ComponentCount);
   Lbl.left := 20;
   lbl.Top := (ScrollBox1.ComponentCount * 30) + 10;
   Lbl.Parent := ScrollBox1;
end;
procedure TForm1.Button2Click(Sender: TObject);
var
   Edt: TEdit;
begin
   Edt := TEdit.Create(ScrollBox1);
   Edt.Name := 'edit' + inttostr(ScrollBox1.ComponentCount);
   Edt.left := 100;
   Edt.Top := (ScrollBox1.ComponentCount * 30) + 10;
   Edt.Parent := ScrollBox1;
end;
end.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110329/7fe254b8/attachment.html>

Reply by email

Paul Ishenin
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote 14 lines
Hi List. After updating to latest trunk version of Lazarus i've experience something quite strange. I'm using: Lazarus 0.9.31 r30067M FPC 2.4.2 x86_64-linux-gtk 2 I've created a link to a gif that demonstrates the problem clearly. All I have done is added a TScrollBox and two buttons, clicking on button created a TEdit, clicking the other creates a TLabel. Gif can be found here <http://www.bondechristiansen.net/img/ScrollingWinControl.gif>. It seem that this problem is present from revision 29944 and onwards?

Looks like that was my change. Can you create a bug report and I will look at it tomorow.

Best regards,
Paul Ishenin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110329/4daca225/attachment.html>

Reply by email

Torsten Bonde Christiansen
to Paul Ishenin
Paul Ishenin wrote 18 lines
29.03.2011 20:08, Torsten Bonde Christiansen wrote: > Hi List. > > After updating to latest trunk version of Lazarus i've experience > something quite strange. > I'm using: Lazarus 0.9.31 r30067M FPC 2.4.2 x86_64-linux-gtk 2 > > I've created a link to a gif that demonstrates the problem clearly. > All I have done is added a TScrollBox and two buttons, clicking on > button created a TEdit, clicking the other creates a TLabel. > > Gif can be found here > <http://www.bondechristiansen.net/img/ScrollingWinControl.gif>. > > It seem that this problem is present from revision 29944 and onwards? Looks like that was my change. Can you create a bug report and I will look at it tomorow.

Created bug report:
http://bugs.freepascal.org/view.php?id=19020

Kind regards,
Torsten Bonde Christiansen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110329/82c044f0/attachment.html>

Reply by email

Luiz Americo Pereira Camara
to Paul Ishenin: Looks like that was my change. Can you create a bug report and I will look at it tomorow.…
Paul Ishenin wrote 17 lines
29.03.2011 20:08, Torsten Bonde Christiansen wrote: > Hi List. > > After updating to latest trunk version of Lazarus i've experience > something quite strange. > I'm using: Lazarus 0.9.31 r30067M FPC 2.4.2 x86_64-linux-gtk 2 > > I've created a link to a gif that demonstrates the problem clearly. > All I have done is added a TScrollBox and two buttons, clicking on > button created a TEdit, clicking the other creates a TLabel. > > Gif can be found here > <http://www.bondechristiansen.net/img/ScrollingWinControl.gif>. > > It seem that this problem is present from revision 29944 and onwards? Looks like that was my change. Can you create a bug report and I will look at it tomorow.

It seems a regression to this issue:
http://bugs.freepascal.org/view.php?id=10779

Luiz

Reply by email

Torsten Bonde Christiansen
to Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote 21 lines
On 29/3/2011 09:15, Paul Ishenin wrote: > 29.03.2011 20:08, Torsten Bonde Christiansen wrote: >> Hi List. >> >> After updating to latest trunk version of Lazarus i've experience >> something quite strange. >> I'm using: Lazarus 0.9.31 r30067M FPC 2.4.2 x86_64-linux-gtk 2 >> >> I've created a link to a gif that demonstrates the problem clearly. >> All I have done is added a TScrollBox and two buttons, clicking on >> button created a TEdit, clicking the other creates a TLabel. >> >> Gif can be found here >> <http://www.bondechristiansen.net/img/ScrollingWinControl.gif>. >> >> It seem that this problem is present from revision 29944 and onwards? > Looks like that was my change. Can you create a bug report and I will > look at it tomorow. It seems a regression to this issue: http://bugs.freepascal.org/view.php?id=10779

Ok, but it seems to be fixed now.

-Torsten.

Reply by email