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
4 answers

Lazarus. Equivalent to Chr() for Unicode symbols

Is there any function in freepascal to show the Unicode symbol by its code (e.g. U+1D15E)? Unfortunately Chr() works only with ANSI symbols (with codes less than 127). I want to use symbols from custom symbolic font and it is very inconvenient to…
VIK
  • 689
  • 2
  • 9
  • 20
3
votes
1 answer

How to format a number in scientific notation

So basically I have this function which returns: 3.00000000000E000 function lang():extended; begin wynik := 0 ; counter := 1; temp :=1; input := 2; for i:= 1 to 4 do begin for k:= 1 to 4 do begin if i = k…
3
votes
3 answers

Creating own component based on TreeView (TTreeNode issue)

just need o access to my custom TreeView with this: MyTreeView1.Selected.MyOwnProperty := 'something'; So, all i want to do is make same component as TreeView is but + i need to add my own property to all of the TreeNodes of TreeView. If I may ask…
Manny
  • 529
  • 1
  • 8
  • 22
3
votes
1 answer

How can I find the order of grid columns?

I have a grid on a form connected to a database table with 10 fields. The first field (hidden) is the ID. The second field is First_Name, the third Last_Name, etc. These columns are indexed 1 through 10. Now, if the user wants the Last_Name before…
fmc
  • 490
  • 7
  • 24
3
votes
2 answers

Making other applications window's translucent in Delphi

Good Day all I searched the web for any directions as to if this is possible but to no avail. I need to write an application that will allow me to select another application and by doing so make the selected application translucent and on-top (like…
Letholdrus
  • 1,261
  • 3
  • 20
  • 36
3
votes
3 answers

Detecting installed lazarus IDE

What is the proper way to detect if the Lazarus IDE is installed in a system programmatically using Delphi? For example to detect if Delphi 7 is installed I can check this key HKLM\Software\Borland\Delphi\7.0. I search for a similar key for Lazarus…
Salvador
  • 16,132
  • 33
  • 143
  • 245
3
votes
3 answers

Hide properties and events in new component

I created in Lazarus a new component based on TPaintBox. Now in Object Inspector I have all Properties and Events which belong to this base component (TPaintBox). My question is: can I hide chosen Properties and Events for my component? For example…
Mlody87
  • 425
  • 1
  • 7
  • 19
3
votes
0 answers

How to debug dll in lazarus

I am creating a dll by lazarus and calling from another host application creating by lazarus too. I config the debug compile option with above two projects: and set Host Application in Run parameters with dll project: and click F9 in the dll…
Moon soon
  • 2,616
  • 2
  • 30
  • 51
3
votes
1 answer

How to record from mic and save to WAV file in WinCE with Lazarus?

I'm using Lazarus to build a WinCE application to be run in a PDA/PocketPC. I need to record the voice from the PDA internal microphone for about 10 seconds, and save it to a wav file, but could not find any information or working example about how…
WarmBooter
  • 1,086
  • 7
  • 9
3
votes
1 answer

Using a indentifier or reserved word in a automation object under FPC

Actually i am using OLE automation under Free Pascal , but some objects have properties which uses reserverd words as names, so i cannot compile the code. check this sample MyObj : OleVariant; begin MyObj := CrealeOleObject('AObject'); …
Salvador
  • 16,132
  • 33
  • 143
  • 245
3
votes
2 answers

Get a list of all used tables in a Postgresql SELECT query

Is there a way to get all the tables used in complex SELECT query in Postgesql without using an actual SQL parser? ver. 9.5 and above will be used.
xc218m
  • 69
  • 6
3
votes
2 answers

How do I prevent the warning "unicode constant cast with potential data loss" in Lazarus?

I'm trying to assign the Tricolon Unicode character #$205D as the caption to a button in a Lazarus Windows program like this: MyButton.Caption := #$205D; It works, the button displays the Tricolon fine, but the compiler emits the warning "Warning:…
dummzeuch
  • 10,975
  • 4
  • 51
  • 158
3
votes
1 answer

How to create a wrapped / scrolling tiled area that is not slow?

Imagine a canvas that is tile filed both horizontally and vertically by using a single bitmap, for example: The above is achieved with the following: procedure TForm1.PaintBox1Paint(Sender: TObject); var X, Y: Integer; begin Y := 0; while Y <…
Craig
  • 1,874
  • 13
  • 41
3
votes
5 answers

Ubuntu and Lazarus

Today I installed Ubuntu and Lazarus IDE (Delphi style cross-platform IDE). I don't know anything about the file structure of Linux Operating Systems. Do you know some tutorials that can get me started specially with Lazarus, and does Linux have…
opc0de
  • 11,557
  • 14
  • 94
  • 187
3
votes
0 answers

True free heap not what it should be after ShellExecute

I have a simple Application that reads data from an .ini file into a record, and then does a ShellExecute. However, when I run it in debug mode,it tells me that the True free heap isn't what it should be: "True heap size: 688128, True free heap:…
Michael Stum
  • 177,530
  • 117
  • 400
  • 535