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

TA_CENTER not working for center align a StringGrid

I have to center align the text in a StringGrid (its cells) and I'm using the code you see here. I found it in another answer here and I edited some things. procedure TForm1.StringGrid1DrawCell(Sender: TObject; aCol, aRow: Integer; aRect:…
Alberto Rossi
  • 1,800
  • 4
  • 36
  • 58
4
votes
1 answer

Combining Lazarus LCL and OpenGL

I recently moved a large program from Delphi over to Lazarus. Most of the bugs are sorted out, and I'm thoroughly impressed with Lazarus / FPC. But there's one bug I can't quite figure out. My application has a main OpenGL window, and a few…
AudioGL
  • 494
  • 4
  • 18
4
votes
4 answers

How do I make the Lazarus IDE look and work like Delphi 2007 or newer?

I've begun working with using Lazarus to make some simple utilities for my own use on Ubuntu 9.10. I know many people like the modular Delphi 7 layout, but I prefer a docked layout. I'd also like to have the Delphi 2007 palette menu. Is this…
Mick
  • 13,248
  • 9
  • 69
  • 119
4
votes
1 answer

How correct show the Explorer-based right-click menu

I create this menu using code placed by Sertac Akyuz in answer here: Show the default right-click menu - Delphi and it works good, but there is problem: When I click in created menu: delete (delete file to recycled) - it asks me: Are you sure want…
user2154246
  • 55
  • 1
  • 6
4
votes
2 answers

Mobile phone Android app with Delphi or Lazarus

Using smart mobile studio to develop a mobile application, I figured out I also need phone gap for further deployment of the application to my mobile device. If I only want to distribute my mobile app on my phone is there any more simple way to…
user1769184
  • 1,571
  • 1
  • 19
  • 44
4
votes
1 answer

Traversing strings for multiple instances of substrings - freepascal or delphi

Platform : Lazarus 1.1, FreePascal 2.7.1, Win 7 32-bit. I have a string value as follows: FileName[12345][45678][6789].jpg By default (assume this is default behaviour 0), my program currently pulls out the last set of numbers from the last pair…
Gizmo_the_Great
  • 979
  • 13
  • 28
4
votes
3 answers

consuming C dlls with Delphi

I have a Dll function with this signature: UInt32 Authenticate(uint8 *Key); I'm doing this on Delphi: function Authenticate(Key:string) : UInt32; external 'mylib.dll' name 'Authenticate'; But always, the function return 10 (error code) and the…
João Mello
  • 153
  • 2
  • 12
4
votes
1 answer

extract lazarus resource

I created a file .Lrs and I imported into the program, it works, but how do I take the resource from the program and extract it to a location on my PC? This is the code: unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils,…
Giacomo King Patermo
  • 829
  • 3
  • 13
  • 25
4
votes
3 answers

get pointer of member function delphi

Is there some trick how to get pointer of a member function in Lazarus / delphi? I have this code which won't compile.... Error is in Delphi: variable required in Lazarus: Error: Incompatible types: got "
Peter
  • 269
  • 3
  • 13
3
votes
2 answers

Using Free Pascal\Lazarus to parse a large binary file for specific values

I need to parse a RAM dump for MFT records (from the NTFS filesystem). I've done some programming in the past with regard to reading headers of multiple files (using FileSearcher class, etc.), but I'm not entirely sure how to start reading from the…
Gizmo_the_Great
  • 979
  • 13
  • 28
3
votes
1 answer

How To Change The Font Size Of Hint Text Associated With a TStringGrid Cell

I am using Lazarus v0.9.30 (32 bit compiler). I have the following code that I use to show the hint text stored in the object associated with a TColumnTitle object in a TStringGrid. procedure TTmMainForm.TmApplicationPropertiesShowHint ( var…
user1174918
  • 525
  • 6
  • 22
3
votes
2 answers

Is It Possible To Change The Font Colour of a TTabSheet Tab Caption

Just a follow up question to this one here => link Is it possible to change the text colour of a TabSheet caption to another colour (eg. White) and change the font style to 'bold'?
user1174918
  • 525
  • 6
  • 22
3
votes
1 answer

How To Toggle The cell Colour And Text In A TStringGrid On And Off

I am running Lazarus v0.9.30 (32 bit compiler). I have a TForm with a standard TStringGrid on it. The grid has the following properties set. RowCount = 5, ColumnCount = 5, FixedCols = 0, FixedRows = 0. I Googled some code that showed me how to…
user1174918
  • 525
  • 6
  • 22
3
votes
1 answer

Wrapping a Fortran library for FreePascal / Lazarus

I would like to use some routines of the DIERCKX library (which is written in Fortran) in a program written in FreePascal with Lazarus. Since I'm totally new to Lazarus, I'd like to know which way to go: Which steps are necessary, and how do I go…
andreas-h
  • 10,679
  • 18
  • 60
  • 78
3
votes
2 answers

How to pass sudo\root password to a Linux command using Free Pascal

Most of the other questions about this seem to be C related. I am using Free Pascal and the Lazarus IDE, version 2.4.0 and 0.9.30 respectively. I am creating a GUI that calls and passes arguments to a Linux command. I don't want my users to have to…
Gizmo_the_Great
  • 979
  • 13
  • 28