Delphi

Welcome to the portal about Delphi.

New Topics

Delphi: Format Numeric Output with 2 Decimal Places

Hello community Please lend a hand :) I have this line : Memo10.Text := FloatToStr(round(Memo29.Value)) + '$'; This results is rounded : 25...

Open Question | 1 Answer

Delphi Error with Form.Hide and Form.Show: This Form of Method Call only allowed for Class Methods

I am using 2 forms and I want one to show up while the current one hides. I used the code: Form1.Hide; Form2.Show; I then get this error: This...

Open Question | 1 Answer

Delphi: Bringing another Application's Window to Foreground when minimized

I am trying to show another Application's Window that is minimized to the taskbar. I have been using the SHOWWINDOW and SETFOREGROUNDWINDOW...

Open Question | 1 Answer

Delphi: Showing another application window that is minimized to task bar

I am trying to show another Application Window that is minimized to the taskbar. I have been using the SHOWWINDOW and SETFOREGROUNDWINDOW commands...

Open Question | 1 Answer

Delphi/Lazarus: Automatically sign in to an HTTPS page or website

How can I log in to an HTTPS or HTTP website automatically via a Lazarus or Delphi program and then automatically read the content of that page? What...

Question | 1 Answer

Lazarus: Set User-Agent in TFPHttpClient

I am using the FPHttpClient to download some websites from the Internet with my Lazarus program. Now I would like to customize the User Agent, which...

Question | 1 Answer

New Answers and Comments

Delphian: Thank you very much for reporting that issue. It must be bmp not c, I have corrected that error in the example...

Question | Delphi/Lazarus: Specify TextWidth and TextHeight without Canvas

Guest: What is c, and why are you freeing it instead of...

Question | Delphi/Lazarus: Specify TextWidth and TextHeight without Canvas

Guest: Thank you! You helped me a lot with this answer!! It was...

Question | Lazarus: Program without GUI - Many WSRegister Errors

Delphian: Then it's probably something else. For example, have you forgotten to set KeyPreview to...

Question | Delphi: Function keys like F1, F2 and F3 do not work in FormKeyDown event

Guest: With Delphi Sydney this is not an option: F1 is also ignored...

Question | Delphi: Function keys like F1, F2 and F3 do not work in FormKeyDown event

Delphian: There are many ways for doing that. One way is to use the function FormatFloat. You can rewrite your code to: Memo10.Text := FormatFloat('0.00',...

Question | Delphi: Format Numeric Output with 2 Decimal Places