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
4
votes
1 answer

ListView and coloring cellls

I have ListView (vsReport) and StringGrid and what I want is if I click on some element in ListView, particular cells in StringGrid have to change colors. How do I do it? Path is filled with 1 (move up) and 0(move right), it starts in left bottom…
qwertaz
  • 55
  • 5
4
votes
1 answer

How do I use CreateFile to access a physical disk?

I asked on the Lazarus programming forum how to open a physical disk. I want to allow the user to select physical disks from their system when they click a "Select Disk" button. There are some examples here at Stack Overflow that are similar but not…
Gizmo_the_Great
  • 979
  • 13
  • 28
4
votes
3 answers

License for MySQL connector

I would like to know if I can use MySQL Connector (libmysql.dll) with comercial Lazarus project. As far as I know, it's under GNU GPL. Thanks for any answers.
Manny
  • 529
  • 1
  • 8
  • 22
4
votes
1 answer

speed exchanges data between TIdTcpServer and TIdTCPClient (like a flood) how to

I have a simple TidTCPServer Working on a console and accepting Data. My problem is when the client Send Stream but having a very high of speed exchange data, The server freeze after 70 lines and the CPU load of the server go to 70%; I don't know…
matrix1233
  • 41
  • 2
4
votes
1 answer

How to set ConnectTimeout/ReadTimeout in Indy SSL

How i can set ConnectTimeout/ReadTimeout in Indy when using SSL ? MCVE: program mcve; uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF}SysUtils, IdHTTP, IdSSLOpenSSL, DateUtils; var HTTP : TIdHTTP; SSL :…
RepeatUntil
  • 2,272
  • 4
  • 32
  • 57
4
votes
1 answer

Duplicate identifier of property and method parameter of a class

I transferred my project from Delphi to Lazarus. In a form I have a private method with parameter var Active: Boolean. In Delphi it was ok, but Lazarus give an error Error: Duplicate identifier "Active" and Hint: Identifier already defined in unit…
4
votes
1 answer

Multi Line Caret in Delphi?

Lazarus has a feature called Multi Caret which allows typing code in the Code Editor (Source Editor) on multiple lines at once. Does Delphi have such a feature?
Blurry Sterk
  • 1,595
  • 2
  • 9
  • 18
4
votes
1 answer

Execute code in the context of the main thread (Lazarus)

I have to execute some code in the context of the main thread. I am using Lazarus + FPC. I receive an event from a thread inside a DLL (shared library if on linux) and my callback function gets called. Note that this function is not a member of any…
Runner
  • 6,073
  • 26
  • 38
4
votes
2 answers

How to get scrollbars to play nicely in a custom control?

My problem is with a custom control I am trying to develop and I cannot seem to figure out how to implement the scroll bars correctly. I will highlight in key points what I am trying to do to make the question easier to understand. The control will…
Craig
  • 1,874
  • 13
  • 41
4
votes
2 answers

Passing arguments to write within a procedure

How can I pass arguments from my procedure to a call of write called inside ? Something quite like that: procedure smth (args: alltypes); begin write(args); end;
Imobilis
  • 1,475
  • 8
  • 29
4
votes
1 answer

Prevent Lazarus Debugger branching into library units

When running a Lazarus Object Pascal program in debug mode, the debugger opens up a dozen LCL library units in the IDE editor and branches to all of these units after finishing any of my event handler routines with the F4 key. How can I prevent this…
4
votes
1 answer

PostgreSQL: Capture RAISE NOTICE from a client connection via ZeosLib/Lazarus

I have developed a client application that use PostgreSQL 8.4 RDBMS. My Application is written in Lazarus and ZeosLib 7.2 for database access. I use a lot of stored procedures and in specific point I use raise notice to get info of the procedure…
AndreaBoc
  • 3,077
  • 2
  • 17
  • 22
4
votes
2 answers

Overloading the assignment operator for Object Pascal

What happens when the assign operator := gets overloaded in Object Pascal? I mainly mean what gets evaluated first and more importantly how (if possible) can I change this order. Here is an example that bugs me: I declare TMyClass thusly: TMyClass =…
N00BKING
  • 41
  • 4
4
votes
2 answers

How can create https server using synapse in lazarus

I am trying to create https server in lazarus using synapse but I am failing. I want to mys server receive data from other https clients. I am sending requests with my browser using https://localhost:1500 and mys server is receiving signals. But…
Imants Gulbis
  • 87
  • 1
  • 8
4
votes
1 answer

Adding units to lazarus?

I want to know how to add units to lazarus e.g (crt,sysutils) specifically wingraph.I have scoured the internet but I haven't found anything so can anybody enlighten me?