Skip to main content

Questions tagged [delphi]

Delphi is a language for rapid development of native Windows, macOS, Linux, iOS, and Android applications through use of Object Pascal. The name refers to the Delphi language as well as its libraries, compiler and IDE which is used to help edit and debug Delphi projects.

2 votes
1 answer
79 views

How to hide console application into Tray?

I want my console application to be hidden in the system tray after it starts. When working with a GUI application, I used TTrayIcon, and it worked without any problems. For the console application, I ...
Sashko1121's user avatar
0 votes
0 answers
51 views

How to manually write DUnit TestCases in Delphi [closed]

I'm using Delphi 10.2 and I need to implement Test Cases dynamically based on the configuration in a loop. How am I able to implement this for DUnit? [TestCase('Date, space, time', '1988-10-21 17:...
Velson Infotech's user avatar
0 votes
1 answer
76 views

Write a new Delphi type that lets a method have inline code as a parameter?

Is it possible to have this in Delphi? DoThis(ShowMessage('SomeMsg ..'); Caption := 'SomeCaption'; Inc(I)); Is it possible to create a new type that handles inline code like this? For example, we ...
MBen's user avatar
  • 19
-2 votes
0 answers
29 views

How do I draw a line with rounded ends using skia and Delphi? [closed]

To draw a line with a rounded end in skia you need to change the StrokeCap to Round. Here is a simple example using Delphi: procedure drawRoundedLine (ACanvas : ISkCanvas; x1, y1, x2, y2 : single); ...
rhody's user avatar
  • 2,363
0 votes
1 answer
51 views

Append string along with single quotes to create SQL query?

var strng,value,UserName : WideString; Query : Smplquery; begin strng := 'table'; value := 'column'; Username := 'CN=ABC[EXT] XYZ, AB=HELLO EFG,AB=SDRTY0045,AB=DW,AB=BNKM,HB=SWCD,HB=...
Lucas's user avatar
  • 1
1 vote
2 answers
90 views

How can I get a Pointer to a generic instance?

TTestClass = class content: Integer; end; TTest = class public class procedure TestProc<T: class>(obj: T); end; class procedure TTest.TestProc<T>(obj: T); var p: ...
John John's user avatar
0 votes
1 answer
74 views

How to set color of row in TStringGrid?

I have a challenge. There is a list in a TStringGrid. Above this list is a TLabeledEdit field. When I type some value into this Edit and then press a button, I scan the list and compare this value ...
Radosław Dobrowolski's user avatar
3 votes
1 answer
93 views

Create form with parameter name and send parameter to this form

I read a file that has the name of the form I need to create. After the form is created, before the ShowModal(), I need to send parameters to this form. If the form name were fixed, I would use the ...
Renato Benedetti's user avatar
-1 votes
1 answer
84 views

Delphi - Sending Byte to DLL

I am attempting to work with an API and am communicating with this function: BOOL SelectSpeed (int Device, byte SelectSpeed) With the argument for SelectSpeed expected to be values such as 0x01 or ...
Noah Leightley's user avatar
2 votes
2 answers
117 views

Do string variables in records get freed when the record goes out of scope?

In Delphi you can declare a record containing a String. This means the record just contains a pointer the heap when the string is located; does the heap memory get freed when this record goes out of ...
John John's user avatar
0 votes
1 answer
121 views

Converting my old AnsiString based D7 app to Unicode with AI?

What would be the best process to convert a very old ANSI charset based Win32 application to UNICODE? The source code is currently compiled with Delphi7. Would it be best to make this conversion with ...
Tom's user avatar
  • 6,761
1 vote
1 answer
45 views

How do you change a SVG Image's Color in TMS WEB Core

I am adding an SVG image to a black background in TMS WEB Core and would like to change the color of the SVG image to White. I have tried changing color in the properties but there is obviosly no ...
Puffer Fish's user avatar
0 votes
0 answers
57 views

DataSnap - Object as server method parameter

Is it currently (Delphi 12) possible to write in server method parameters some class and receive it from simple JSON? Now I have: type TTestParam = class fVal1: Integer; end; {$...
Dżyszla's user avatar
0 votes
1 answer
45 views

"Error creating form in Unit...fmx: FMX datamodules not supported." when inherit from TDataModule descendant class

I have a problem (with sample project). I have a TDataModule derived class to which I have added some properties and methods. I wanted to make sure that it was possible to create a new instance of ...
Maurizio Del Magno's user avatar
0 votes
1 answer
142 views

Make Delphi XE application DPI-unaware

I just created a new application in Delphi and even though other applications written the same way, this new application does not get automatically scaled by Windows. All applications have exactly the ...
Andreas Ströbel's user avatar

15 30 50 per page
1
2 3 4 5
3473