Re: [Lazarus] What to replace Application.Processmessages with?

2020-10-27 Thread Mattias Gaertner via lazarus
On Mon, 26 Oct 2020 13:00:26 +0100 (CET) Michael Van Canneyt via lazarus wrote: >[...] > Procedure HandleMainLoop; > > begin > {$IFDEF NOGUI} >CheckSynchronize; > {$ELSE} >Application.ProcessMessages; > {$ENDIF} > end; > > And call that both in GUI and NOGUI.

Re: [Lazarus] What to replace Application.Processmessages with?

2020-10-27 Thread Graeme Geldenhuys via lazarus
On 13/10/2020 9:15 am, Bo Berglund via lazarus wrote: > The TTimer objects have been replaced by TFpTimer objects in the > ported code and this seems to work fine, whereas TTimer does not. That is the key part, using TFPTimer is thread based, so calling CheckSynchronized() would be the solution

Re: [Lazarus] Fixed-pitch font on windows with difference between 1 and l in code editor?

2020-10-27 Thread Bo Berglund via lazarus
On Tue, 27 Oct 2020 16:17:19 +0100 (CET), Pascal Riekenberg via lazarus wrote: >I use Hack: https://sourcefoundry.org/hack/ > > Thank you! This is really what I have been looking for! An annoyance: The font installer insists on restarting the computer, but it works without that. -- Bo

Re: [Lazarus] Fixed-pitch font on windows with difference between 1 and l in code editor?

2020-10-27 Thread Pascal Riekenberg via lazarus
I use Hack: https://sourcefoundry.org/hack/ Pascal > frans via lazarus hat am 27.10.2020 10:42 > geschrieben: > > > I'm using Courier New. > > mvg > Frans van Leeuwen > M 06-51695390 > > Op 27-10-2020 om 10:34 schreef Bo Berglund via lazarus: > > I am trying to find a font to use in the

Re: [Lazarus] TTimer simple issue

2020-10-27 Thread Bo Berglund via lazarus
On Tue, 27 Oct 2020 14:40:27 +0100, Darius Blaszyk via lazarus wrote: >>> But this is very not a very efficient way. The best is to get the start >>> time, get the end time and subtract. >>> >>> var >>> StartTime,EndTime:TDataTime; >>> i, answer: integer; >>> begin >>> StartTime:=now; >>>

Re: [Lazarus] TTimer simple issue

2020-10-27 Thread Darius Blaszyk via lazarus
The first multiplication is when i = 0, so it should be ok. I am wondering though, the OP wants to calculate the factorial of 9. That would require a larger data type than an integer to store the result in! ;) On Tue, Oct 27, 2020 at 1:46 PM Евгений Кадисов via lazarus <

Re: [Lazarus] I use the Windows procedure WinExec() to open directries and files out of a lazarus application on a Windows box. I also use the same application in a Linux mint box. Is there a procedur

2020-10-27 Thread Salvatore Coppola via lazarus
Take a look at TProcess Regards ⁣Ottieni BlueMail per Android ​ Il giorno 26 Ott 2020, 10:34, alle ore 10:34, larrydalton71 via lazarus ha scritto: > >Sent from my Verizon, Samsung Galaxy smartphone > > > >--

Re: [Lazarus] TTimer simple issue

2020-10-27 Thread Евгений Кадисов via lazarus
The problem of your code is that the variable is not initialized. Regards Evgueny вт, 27 окт. 2020 г. в 15:28, Santiago A. via lazarus < lazarus@lists.lazarus-ide.org>: > El 18/10/2020 a las 19:18, Lars via lazarus escribió: > > When building a simple TTimer demo I cannot seem to get it

Re: [Lazarus] Fixed-pitch font on windows with difference between 1 and l in code editor?

2020-10-27 Thread Martin Frb via lazarus
On 27/10/20 10:34, Bo Berglund via lazarus wrote: I am trying to find a font to use in the code editor window on Lazarus 2.0.10 on Windows 10 x64 where I can see a difference between 1 and l (number and letter). I think you can also use "user defined markup" to make all "1" (one) bold or

Re: [Lazarus] TTimer simple issue

2020-10-27 Thread Santiago A. via lazarus
El 18/10/2020 a las 19:18, Lars via lazarus escribió: When building a simple TTimer demo I cannot seem to get it working Any idea what the problem could be if you paste this code into your form with a memo? var   TimeSpent: integer; procedure TForm2.Button1Click(Sender: TObject); var   i,

Re: [Lazarus] Fixed-pitch font on windows with difference between 1 and l in code editor?

2020-10-27 Thread frans via lazarus
I'm using Courier New. mvg Frans van Leeuwen M 06-51695390 Op 27-10-2020 om 10:34 schreef Bo Berglund via lazarus: I am trying to find a font to use in the code editor window on Lazarus 2.0.10 on Windows 10 x64 where I can see a difference between 1 and l (number and letter). The closest I

[Lazarus] Fixed-pitch font on windows with difference between 1 and l in code editor?

2020-10-27 Thread Bo Berglund via lazarus
I am trying to find a font to use in the code editor window on Lazarus 2.0.10 on Windows 10 x64 where I can see a difference between 1 and l (number and letter). The closest I have gotten is Lucida Console, but it uses extra space between letters making the lines un-necessarily rather long Is