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

Fpgui and lcl and qt, what are the advantages and disadvantages?

Lazarus Ide can use several gui libraries. I am on Windows. I wonder what are difference among them... It is clear that lcl is most stable. Why would anyone use Qt and fpgui once they will be of good quality?
Aftershock
  • 5,205
  • 4
  • 51
  • 64
4
votes
0 answers

Spearmans rank with ties in pascal

I'm working on a project where I need to calculate the spearman's rank of some data, Currently my program can calculate the spearmans rank as long as their are no tied rankings. I would use an existing unit but I need to display the ranked values in…
Confused
  • 41
  • 1
4
votes
1 answer

Static code analysis for Free Pascal

Are there any tools available that allow static code analysis for Free Pascal sources? I would prefer a solution that allows for checking a whole Lazarus project.
jwdietrich
  • 474
  • 6
  • 17
4
votes
3 answers

Using windows command line from Pascal

I'm trying to use some windows command line tools from within a short Pascal program. To make it easier, I'm writing a function called DoShell which takes a command line string as an argument and returns a record type called ShellResult, with one…
Jordan
  • 41
  • 1
  • 1
  • 2
4
votes
1 answer

Get an SIGSEGV error when add a PNGImage in TGLCompositeImage

I am usings Lazarus 1.2.4 and GLSCENE svn 6462 (1.2 svn version) I add material with this function below function AddMaterial(aMatLib: TGlMaterialLibrary; aFileName, aMaterialName: string): TGlLibMaterial; overload; begin result :=…
azrael11
  • 417
  • 6
  • 18
4
votes
2 answers

Multithreaded bubblesort. Works fine with delphi 7 but not with Lazarus? Compiler bug?

First of all I would like to show you my code: unit BSort; {==============================================================================} {$mode…
Babubabu
  • 69
  • 4
4
votes
3 answers

Lazarus Pascal beep command

I'm running Lazarus on Windows. I would really like to make the program "Beep". It appears that you can do so in Pascal using: windows.beep(300,500); But not in Lazarus! Is there another command that I can use? Update: sysutils.beep() This…
pluke
  • 3,832
  • 5
  • 45
  • 68
4
votes
2 answers

Exist a tool to convert DFM files to sourcecode?

I'm porting a app to FreePasal/Lazarus & found that their form converter is not good. I have a small utility app, and each time I do a change I need to reconvert, relayout and reimport graphics. Plus, some things are messed up. I wonder if exist a…
mamcx
  • 15,916
  • 26
  • 101
  • 189
4
votes
3 answers

Listing Files On Directory On a TListView

I'm building a program that needs to on Form_Create, populate a TListView called FileList, the directory that I want to populate is where the compiled program is + \Files, as I never used a TListView I want to know how to do this?
Nathan Campos
  • 28,769
  • 59
  • 194
  • 300
4
votes
1 answer

Is TEventLog component thread-safe?

I use TEventLog component to debug my application, log all steps in order to fully verify that is working properly. Is TEventLog thread safe, I am writing from multiple threads using the same instance of TEventLog. Is it wrong, should I use critical…
opc0de
  • 11,557
  • 14
  • 94
  • 187
4
votes
1 answer

Windows Impersonation Apache Module in Lazarus

I currently am in the process of porting several Windows desktop applications to a single web site. The current setup includes several SQL server backend databases, configured with Windows Authentication (SSPI) only, and every user/group/role has…
geomagas
  • 3,230
  • 1
  • 17
  • 27
4
votes
1 answer

MVC Lazarus Wrong number of parameters

I'm trying to implement MVC pattern in lazarus, I've created the model and the view (directly from the designer). Now, I'm writing the "controller", but when I try to re-assign the auto-generated method "Button.OnClick", I've a compilation error…
Titouan56
  • 6,932
  • 11
  • 37
  • 61
4
votes
2 answers

How to copy part of a Treeview to a Menu

I am trying to copy part of a Treeview to a popup menu, and am not having any luck at all I just cannot seem to get recursion to work and I know I am probably doing it all wrong. Take this example image (which is a runtime screenshot from the code…
user1175743
4
votes
2 answers

Saving and Loading Treeview using XML

Note Sorry in advance for the long post, I though it would be best to put as much information on as possible rather than fill the gaps when needed. Note although I have tagged this as Delphi as well and do own and still use Delphi XE I am now using…
user1175743
4
votes
1 answer

Write string variable to the clipboard

I'm going to admit, right off the bat, that I'm Pascal-inexperienced, to say the least. So, any help I can get will be greatly appreciated. :) As part of a larger program, I need to write a string variable to the clipboard. I've created a new…
mythofechelon
  • 3,692
  • 11
  • 37
  • 48