* * *

Recent Posts

Pages: [1] 2 3 ... 10
1
General / Re: Recompilation of Lazarus IDE in Lazarus.
« Last post by Martin_fr on Today at 02:03:06 pm »
It is actually ide/lazarus.lpi.

Right, my bad.

Anyway the way to build the IDE, is via the Tools menu.

Afaik the ide/lazarus.lpi is for browsing the sources
2
Mac OS X / Re: TSaveDialog wrong directory
« Last post by Phil on Today at 01:56:00 pm »
I saw that there are some bug issues on the bug tracker on open and save dialogs on carbon and cocoa but they seems to be resolved but not on my fpc 3.0.4 las 1.8.4

All testing on Cocoa should be done with Lazarus trunk code from Subversion repository. Cocoa widgetset code in Lazarus 1.8.4 has not been updated since April 2017.

https://macpgmr.github.io/MacXPlatform/UsingCocoaFromTrunk.html

With Carbon, file a bug report, although I would focus on Cocoa since that's the future.
3
General / Re: POS counts accentuation as characters
« Last post by bytebites on Today at 01:36:04 pm »
Indeed not. 
This works with latest stable version.
Code: Pascal  [Select]
  1. var
  2.   posi:integer;
  3.   caret: TPoint;
  4. begin
  5.     Caret.y:=Memo.CaretPos.y;
  6.     Caret.x:=Memo.CaretPos.x;
  7.     posi:=utf8Pos(' ',Memo.Lines[Caret.y],caret.x);
  8.     If posi<>0 then
  9.     begin
  10.       Caret.x:=posi-1;
  11.       Memo.CaretPos:=Caret;
  12.       Memo.PasteFromClipboard;
  13.     end
  14. end;
4
fpcupdeluxe uses a "sandbox" environment.
LazBuild should work if you just load the sources and build with an installed FPC.
5
Cocoa / Problem drawing on Canvas
« Last post by apeoperaio on Today at 01:09:30 pm »
I noticed a different behaviour when drawing on Canvas between Cocoa and all other widgetsets.
Carbon reacts as win32 and GTK2. Cocoa differently.
Open a new project and OnPaint do:

procedure TForm1.FormPaint(Sender: TObject);
begin
  Canvas.Line(0, 0, Width, Height);
end; 

See attached images, Cocoa does not draw the line properly.
Lazarus 1.8.4 fpc 3.0.4

6
General / Re: Recompilation of Lazarus IDE in Lazarus.
« Last post by JuhaManninen on Today at 01:07:20 pm »
2) There is project in the folde ide:  ide/lazarus.lpk
I don't have this file (installed Lazarus from .exe in Windows 10).
It is actually ide/lazarus.lpi.
7
General / Re: Recompilation of Lazarus IDE in Lazarus.
« Last post by Kurush on Today at 01:02:32 pm »
2) There is project in the folde ide:  ide/lazarus.lpk

I don't have this file (installed Lazarus from .exe in Windows 10).

4) When you add packages, look for their *Dsgn counterparts. They add the content to the component palette.
E.g., there is SynEditDsgn.lpk

Thanks. It seems that it allows solving my problem.
8
Mac OS X / TSaveDialog wrong directory
« Last post by apeoperaio on Today at 12:33:41 pm »
I have an issue with TSaveDialog on OSX.
I have wrong path when using the folder opened by the TSaveDialog.
In order to reproduce place a button and a TSaveDialog on a form.
The use the code below:
Code: Pascal  [Select]
  1. unit Unit1;
  2.  
  3. {$mode objfpc}{$H+}
  4.  
  5. interface
  6.  
  7. uses
  8.   Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls;
  9.  
  10. type
  11.  
  12.   { TForm1 }
  13.  
  14.   TForm1 = class(TForm)
  15.     Button1: TButton;
  16.     Label1: TLabel;
  17.     SaveDialog1: TSaveDialog;
  18.     procedure Button1Click(Sender: TObject);
  19.   private
  20.  
  21.   public
  22.  
  23.   end;
  24.  
  25. var
  26.   Form1: TForm1;
  27.  
  28. implementation
  29.  
  30. {$R *.lfm}
  31.  
  32. { TForm1 }
  33.  
  34. procedure TForm1.Button1Click(Sender: TObject);
  35. begin
  36.   SaveDialog1.FileName:= 'test.txt';
  37.   if SaveDialog1.Execute then
  38.     Label1.Caption:= SaveDialog1.FileName;
  39. end;
  40.  
  41. end.
  42.  

Click the button and navigate to Documents folder, click ok on the save dialog and you will get the right folder, click again on button1, the savedialog will propose you the Documents folder as default, just press Ok on the save dialog and you will get the following filename that is wrong:

test.txt/test.txt

I saw that there are some bug issues on the bug tracker on open and save dialogs on carbon and cocoa but they seems to be resolved but not on my fpc 3.0.4 las 1.8.4

Any hint?
9
General / Re: Recompilation of Lazarus IDE in Lazarus.
« Last post by Martin_fr on Today at 12:04:09 pm »
1) You can build the IDE from the Tools menu > "Configure build lazarus"

2) There is project in the folde ide:  ide/lazarus.lpk

3)
Quote
  {$IFDEF AddStaticPkgs}
  {$I staticpackages.inc}
  {$ENDIF}
  {$IFDEF BigIDE}
You want to include BigIde, though you also can just add those packages.

staticpackages are packages you installed. But if you do your own project, you better add them as packages, rather than using staticpackages.

4) When you add packages, look for their *Dsgn counterparts. They add the content to the component palette.
E.g., there is SynEditDsgn.lpk


10
OnEditingDone is an event that is fired when "editing state" finished. It doesn't mean that something actually has changed. Therefore if you use OnEditingDone you always have to track the value you use from the control ... and execute your action only if the value changed.
If you do this (detect change) problem #3 isn't that bad.
In my case I need the TComboBox.OnEditingDone event also, if nothing was changed. That means, that the same actions have to take place, if someone enters or selects the same value than before e.g. from the ComboBox-History. So this (detect change) is not a solution for my problem #3. But I have a good solution (see reply #21), so my problem #3 is solved.

Generally speaking OnEditingDone ... doesn't guarantee that something actually changed. So it's not worth to pollute the LCL code with workarounds to fix issue #33992.
I understand that to fix issue #33992 is a difficult decision because of the risk to create new bugs. As wp wrote, this person must have very good knowledge of the LCL.
Pages: [1] 2 3 ... 10

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus