Questions tagged [lazarus]

Lazarus is an open-source multiplatform RAD environment for the Free Pascal compiler, in the spirit of Delphi, with which it has a fairly high degree of compatibility.

Lazarus is a an open-source multiplatform RAD environment for the Free Pascal compiler, in the spirit of Delphi, with which it has a fairly high degree of compatibility.

See http://lazarus.freepascal.org

1306 questions
3
votes
1 answer

How to implement in freepascal/lazarus a cef3 render process handler in a subprocess

I am trying to implement a fpcef3 render process handler as a subprocess: following the examples provided on the fpcef3 github repo, I have managed to create a render process handler subprocess: Program subprocess; {$mode objfpc}{$H+} Uses …
BigONotation
  • 4,406
  • 5
  • 43
  • 72
3
votes
1 answer

Lazarus: Disable console messages "WARNING: TGtk2WidgetSet.InvalidateRect refused invalidating"

If program CudaText runs from terminal (on Ubuntu 14.04), then terminal is full of messages: WARNING: TGtk2WidgetSet.InvalidateRect refused invalidating during paint message How to disable them is the source? Maybe some {$define}?
UserPt
  • 78
  • 5
3
votes
0 answers

Embed a font in the binary with Free Pascal/Lazarus under Linux

In the hopes that this question will not be marked as duplicate since all of these only have Windows solutions: How can I temporarily load a font Embedding a font in Delphi How to use external fonts? My question is this: How can one do the same…
Gustavo Carreno
  • 9,499
  • 13
  • 45
  • 76
3
votes
3 answers

Handling WM_DROPFILES message doesn't work in Lazarus

I want to create windows GUI application using Lazarus that able to drag file from explorer to the TEdit widget and show the file path. I had read and tried some delphi tutorials, it said that you need to handle the WM_DROPFILES message, but I still…
null
  • 8,669
  • 16
  • 68
  • 98
3
votes
1 answer

Static link sqlite in Lazarus

I am building an application with Lazarus where I use a sqlite database to store thousands of records. Right now I am linking to the sqlite library dynamically via the sqlite3.dll. Is it possible to link to it statically? Where can I find the…
Anusha Dharmasena
  • 1,219
  • 14
  • 25
3
votes
1 answer

Is there any simple way to use the FTP function in Lazarus code

I am a couple of months new to Lazarus. I have been trying to create a small FTP program that will send a small file after logging in. I have all the gooey stuff done and my only concern is the FTP part. I am getting a whole lot of errors and I have…
3
votes
2 answers

Active blogs about Lazarus and/or FPC

I'm getting really upset with the whole direction that "Emborcadero" is taking and I'm really going to invest in FPC/Lazarus. Went to the Lazarus Documentation page and found the following blogs: Lazarus Development - Up to date Adventures of a…
Gustavo Carreno
  • 9,499
  • 13
  • 45
  • 76
3
votes
1 answer

formatted input from string in Pascal

In Pascal (Delphi, Lazarus), there is the Format() function for creating a formatted string from a list of variables. It works in a similar way to sprintf() function in C/C++. On the other hand, I am not aware of any function which would set…
Plzak
  • 43
  • 3
3
votes
2 answers

Linking SDL with FreePascal (using Lazarus) on Windows OS

Ok, so for a game I'm working on, my programmer has decided to use FreePascal with SDL, and has shown me that it works (though he is using a Linux OS and I'm not). I have tried multiple methods of linking the SDL2.dll and the accompanying header…
Nate H.
  • 31
  • 2
3
votes
1 answer

Lazarus FPC refusing a 64-bit value for AND op in ASM

The following won't compile: and rax, $7FFFFFFFFFFFFFFF I've tried making the value a constant, even cast as a qword, but the compiler throws "dword value exceeds bounds." Of course, this is a qword, not a dword. How do I get the compiler to…
IamIC
  • 17,747
  • 20
  • 91
  • 154
3
votes
3 answers

Pascal - Input a various number of variables on 1 line

So I was thinking how is it possible to ask for an input of an unknown number of variables on one line only by using a space to separate them... For instance, if the number of variables I want to input is known, the code would…
Jack Avante
  • 1,405
  • 1
  • 15
  • 32
3
votes
1 answer

How to use the TSynCompletion and TSynAutoComplete components with SynEdit for TeX?

I want to create a simple TeX/LaTeX editor with Lazarus and SynEdit. The TSynTeXSyn syntax highlighter highlights the TeX syntax pretty well. Now I'd like some sort of code completion. Tried to use TSynCompletion and TSynAutoComplete components but…
Cigydd
  • 93
  • 1
  • 8
3
votes
2 answers

How make {$IFNDEF DEBUG} work in lazarus/osx project

I need to disable some code when run under the debugger. So, I just imagine that doing: {$IFNDEF DEBUG} ... {$ENDIF} However, the code inside the ifndef is executed in the debugger, makin it crash. I have lazarus 0.9.29 & FPC 2.4.0
mamcx
  • 15,916
  • 26
  • 101
  • 189
3
votes
1 answer

Lazarus/FreePascal, Synapse send file to TCPBlockSocket

I tried to make an analogue nc (netcat) tool. Open file and send it in to TCP socket. client (sender) side procedure TForm1.SpeedButton3Click(Sender: TObject); var Client:TTCPBlockSocket; FS: TFileStream; begin Client:=TTCPBlockSocket.Create; …
Anton Shevtsov
  • 1,279
  • 4
  • 16
  • 34
3
votes
3 answers

Alignment issue in x64 code, Free Pascal

The code below works fine if complied for 32 bit (with the applicable register renaming). But it throws an error when executed (and "Warning: Object file "project1.o" contains 32-bit absolute relocation to symbol…
IamIC
  • 17,747
  • 20
  • 91
  • 154