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

FindComponent doens't work in a procedure

I am developing a program that calculates the averages of some datas in different TStringGrid and I thought to use a procedure. It is called calcola. procedure calcola(numero:ShortInt; StringGrid:TStringGrid; pbarprog:ShortInt); var…
Alberto Miola
  • 4,643
  • 8
  • 35
  • 49
3
votes
1 answer

Read string with indy using custom terminator

I am using a TIdTcpServer component to implement a basic server side application. I have clients witch send strings to the server,ascii encoded, ending in these to characters #@. eg : this_is_a_sample#@ thisis_another_sample#@ My OnExecute…
opc0de
  • 11,557
  • 14
  • 94
  • 187
3
votes
3 answers

Pascal Synapse error handling

I have some code written in Lazarus/FreePascal that uses the Synapse IMAPSend library unit. I attempt to login to an IMAP server over SSL (IMAPS) but the call to Login fails. I've tried checking for exceptions - none are thrown. Wireshark shows…
RedGrittyBrick
  • 3,827
  • 1
  • 30
  • 51
3
votes
1 answer

Problem with converting Delphi form to Lazarus

After I ported Delphi Windows service app to FPC Linux console app I tried to port program with GUI. I installed newest Lazarus on my Windows machine and converted simple "hello world" app. One unit has form (.dfm file in Delphi). This form was…
Michał Niklas
  • 53,067
  • 18
  • 70
  • 114
3
votes
1 answer

Bluetooth on Lazarus/FreePascal on Mac OS X

Has anyone used Bluetooth on Mac OS X with Lazarus or FreePascal? There is a bluetooth unit, but it currently only supports Linux. Information about existing unit: http://wiki.freepascal.org/Bluetooth I plan to enhance this to support Mac OS, but…
Noah
  • 998
  • 1
  • 12
  • 22
3
votes
3 answers

How to know that a form was created?

I want to find a way to know that a form was created at run time (or destroyed). This for Delphi or fpc. Many thanks PS : Is there a way to retrieve that info for all objects ?
3
votes
1 answer

Change Exception message in Lazarus

Everytime I use a raise Exception.create('...');, it shows, differently from Delphi, the following box: [my message] Press OK to ignore and risk data corruption. Press Cancel to kill the program. I just want to change this default message and keep…
felipe.zkn
  • 2,012
  • 7
  • 31
  • 63
3
votes
1 answer

File Drag Drop not working on Form in Lazarus

I had encountered a very strange problem in TForm1.FormDropFiles. I had attached the entire project. I am unable to locate the problem. After executing the project form1 is shown and a system tray icon is displayed, when a file is dragged and…
Rahul
  • 441
  • 1
  • 6
  • 16
3
votes
1 answer

freepascal regexp replace

Is there an easy way to do a RegExp replace in FreePascal/Lazarus? Hunting around I can see that I can do a match fairly easily, but I'm struggling to find functions to do a search and replace. What I'm trying to acheive is as follows. I have an…
Fat Monk
  • 2,077
  • 1
  • 26
  • 59
3
votes
1 answer

Windows 7 Welcome screen (translating c# to pascal)

The code provided by Jon in the following thread seems to illustrate exactly what I want to do Running a process at the Windows 7 Welcome Screen Unfortunately it's in C#, a language I don't know at all. I'm trying to translate the code to Pascal (a…
3
votes
2 answers

How to find the item by assigned object in TComboBox in Lazarus?

How to find the item by assigned object in TComboBox ? I have a combo box, where I'm storing values from database; name as item and ID (integer) as an object: ComboBox1.Clear; while not SQLQuery1.EOF do begin …
user2115046
  • 33
  • 1
  • 4
3
votes
2 answers

Lazarus Pascal or Delphi - Escaping characters for security/integrity

In PHP (and MySQL) we have a host of techniques for ensuring that the data entered is valid and safe. Adding slashes, MySQL's escape string and regex are a few we often use. I've seen THIS LINK that gives a very preliminary introduction to the…
itsols
  • 5,406
  • 7
  • 51
  • 95
3
votes
2 answers

Indy10 Free Pascal

I try to follow to install instruction for Indy10 and Lazarus. After downloading Indy 10 download, using the correct password I see only Delphi code, no folder with the name lazarus or freepascal. Has the Lazarus version from Indy10 been removed ?
Franz
  • 1,883
  • 26
  • 47
3
votes
1 answer

How can I generate and play back procedural sounds (square wave, etc.) in Lazarus/Free Pascal?

How can I play and synthesize custom waves in Lazarus/Free Pascal? The solution has to be realtime-friendly, as it is for a game engine. It should be also multi-platform, so it can be used on win32, Linux and Mac. FMOD/BASS are out (even if…
Dariusz G. Jagielski
  • 655
  • 3
  • 11
  • 22
3
votes
1 answer

MC3100 Scanner Programming

We are using Motorola MC3100 Mobile Computer, Barcode scanners. running Windows CE6.0 To program these we intend to use Lazarus/FPC and indeed we have produced a test app that works on the device. Our problem is that we do not know how to…
user576639
  • 89
  • 2
  • 11