Sign in Join

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

Mailing lists / lazarus / 2012-06

A few questions

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Xiangrong Fang

Hi There,

I've been away from Laz for a few months. And just tried the daily build on Windows. Now having a few questions:

1) How is the status of latest Lazarus on Ubuntu? I had very bad experience during Ubuntu 11.04 and 11.10, notable problem is Laz does not play well with Unity global menu.

2) There is a problem with Canvas, I reported a bug already ( http://bugs.freepascal.org/view.php?id=22163) Please create a new project, add an Form.OnPaint event handler:

procedure TForm1.FormPaint(Sender: TObject);
begin
  with Canvas do begin
    Pen.Width:=1;
    Pen.Color:=clRed;
    MoveTo(0, 0);
    LineTo(100, 0);
    LineTo(0, 100);
    LineTo(0, 0);
    MoveTo(Width - 1, Height - 1);
    LineTo(Width - 101, Height - 1);
    LineTo(Width - 1, Height - 101);
    LineTo(Width - 1, Height - 1);
  end;
end;

While the program is running there are two triangles on the top left and bottom right corner of the form. Now you maximize the form, the 2 triangles are redrawn. But then you restore the form, the bottom triangle is NOT drawn!

3) I tried to use TCanvas.FloodFill, but compiler told me incorrect number of arguments. I traced down into the fpcanvas source, the signature is correct, I wonder if that method is implemented or not?

Thanks!
Shannon

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

Reply by email

Mattias Gaertner
to Xiangrong Fang
Show quoted text 8 lines
Hi There, I've been away from Laz for a few months. And just tried the daily build on Windows. Now having a few questions: 1) How is the status of latest Lazarus on Ubuntu? I had very bad experience during Ubuntu 11.04 and 11.10, notable problem is Laz does not play well with Unity global menu.

Can you be more specific?

[...] 3) I tried to use TCanvas.FloodFill, but compiler told me incorrect number of arguments. I traced down into the fpcanvas source, the signature is correct, I wonder if that method is implemented or not?

The FPCanvas.FloodFill(x,y) is not implemented in the LCL. It "reintroduces" another FloodFill(X, Y: Integer; FillColor: TColor; FillStyle: TFillStyle). This means the compiler message is correct.

The "find declaration" ignores the "reintroduce" and finds more than the compiler.

Just add the two parameters.

Keep in mind that FloodFill can be very slow.

Mattias

Reply by email

Xiangrong Fang
to Mattias Gaertner

Hi Mattias,

1) About Laz on Ubuntu 12.04: it is quite OK, except that the installing process is still very tricky and after install it has 2 minor problems:

- on first start, it always complains that FPC source is not found.
- on program termination (if run within the IDE), the attached error is shown.

2) About the bug I reported. I confirm that it does NOT appear on Ubuntu, but only Windows. And it appears on both Win7 and WinXP, both laz v0.9.30.4 and the bleeding edge nightly build.

3) I used the correct form of FloodFill, now the compiler is happy, but there is no flood fill at all (both on windows and linux). btw, to make sure I use it correctly, I just need to specify a point within the shape I want to fill, right?

Shannon

2012/6/2 Mattias Gaertner

Show quoted text 40 lines
On Sat, 2 Jun 2012 09:16:54 +0800 Xiangrong Fang wrote: > Hi There, > > I've been away from Laz for a few months. And just tried the daily build > on Windows. Now having a few questions: > > 1) How is the status of latest Lazarus on Ubuntu? I had very bad > experience during Ubuntu 11.04 and 11.10, notable problem is Laz does not > play well with Unity global menu. Can you be more specific? >[...] > 3) I tried to use TCanvas.FloodFill, but compiler told me incorrect number > of arguments. I traced down into the fpcanvas source, the signature is > correct, I wonder if that method is implemented or not? The FPCanvas.FloodFill(x,y) is not implemented in the LCL. It "reintroduces" another FloodFill(X, Y: Integer; FillColor: TColor; FillStyle: TFillStyle). This means the compiler message is correct. The "find declaration" ignores the "reintroduce" and finds more than the compiler. Just add the two parameters. Keep in mind that FloodFill can be very slow. Mattias -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120602/a2bd65c3/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: error.png Type: image/png Size: 35040 bytes Desc: not available URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120602/a2bd65c3/attachment-0001.png>

Reply by email

leledumbo
to Xiangrong Fang: I've been away from Laz for a few months. And just tried the daily build on Windows. Now…
How is the status of latest Lazarus on Ubuntu? I had very bad experience

during Ubuntu 11.04 and 11.10, notable problem is Laz does not play well with Unity global menu.

It works fine, very fine... but on KDE XD

* I always hate Gnome, now I even hate Unity more than Gnome

View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-A-few-questions-tp4024280p4024287.html Sent from the Free Pascal - Lazarus mailing list .

Reply by email

Xiangrong Fang
to Xiangrong Fang: 1) About Laz on Ubuntu 12.04: it is quite OK, except that the installing process is…

More info about the bug I reported:

I installed Laz1.1/win32 on Ubuntu via wine, the problem does NOT exist on wine platform. I also confirmed that the same problem appear on a physical Win7 machine, so it is not my virtualbox's fault.

Shannon

2012/6/2 Xiangrong Fang

Show quoted text 72 lines
Hi Mattias, 1) About Laz on Ubuntu 12.04: it is quite OK, except that the installing process is still very tricky and after install it has 2 minor problems: - on first start, it always complains that FPC source is not found. - on program termination (if run within the IDE), the attached error is shown. 2) About the bug I reported. I confirm that it does NOT appear on Ubuntu, but only Windows. And it appears on both Win7 and WinXP, both laz v0.9.30.4 and the bleeding edge nightly build. 3) I used the correct form of FloodFill, now the compiler is happy, but there is no flood fill at all (both on windows and linux). btw, to make sure I use it correctly, I just need to specify a point within the shape I want to fill, right? Shannon 2012/6/2 Mattias Gaertner > On Sat, 2 Jun 2012 09:16:54 +0800 > Xiangrong Fang wrote: > > > Hi There, > > > > I've been away from Laz for a few months. And just tried the daily > build > > on Windows. Now having a few questions: > > > > 1) How is the status of latest Lazarus on Ubuntu? I had very bad > > experience during Ubuntu 11.04 and 11.10, notable problem is Laz does > not > > play well with Unity global menu. > > Can you be more specific? > > > >[...] > > 3) I tried to use TCanvas.FloodFill, but compiler told me incorrect > number > > of arguments. I traced down into the fpcanvas source, the signature is > > correct, I wonder if that method is implemented or not? > > The FPCanvas.FloodFill(x,y) is not implemented in the LCL. It > "reintroduces" another FloodFill(X, Y: Integer; FillColor: TColor; > FillStyle: TFillStyle). This means the compiler message is correct. > > The "find declaration" ignores the "reintroduce" and finds more than > the compiler. > > Just add the two parameters. > > Keep in mind that FloodFill can be very slow. > > Mattias > > -- > _______________________________________________ > Lazarus mailing list > > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > --
-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120604/7eb68720/attachment.html>

Reply by email