Questions tagged [delphi-10.4-sydney]

Delphi 10.4 Sydney is a specific version of Delphi released in May 2020.

363 questions
2
votes
1 answer

How to Link object file in Delphi over Linux Platform?

I am using object file in my Delphi application over Linux Platform and linked them as shown in below piece of code and getting error: "E2065 Unsatisfied forward or external declaration: 'add'" Delphi: program ITP_Test; {$APPTYPE…
Anna
  • 119
  • 9
2
votes
0 answers

Windows Preview Handler using FMX drawing functions?

I have created an FMX graphics application that draws various graphics from a custom binary vector file format. I'd now like to create a Windows Preview Handler to support that file format. I have already created a basic VCL preview handler based on…
XylemFlow
  • 963
  • 5
  • 12
2
votes
1 answer

How to pass several files at once to my registered application?

In a Delphi 10.4.2 win-32 VCL Application associated with graphic file formats in Windows 10, I get parameter files selected in Windows File Explorer. Here I watch the files passed to my app right after…
user1580348
  • 5,721
  • 4
  • 43
  • 105
2
votes
1 answer

How to unregister a File Format for my application?

In a Delphi 10.4.2 win-32 VCL Application in Windows 10, I register the .ICO file format for my graphics application by using DSiWin32.DSiRegisterUserFileAssoc: DSiRegisterUserFileAssoc( '.ico', //…
user1580348
  • 5,721
  • 4
  • 43
  • 105
2
votes
1 answer

State of the art way to register/unregister a file type with my own application for the current user in Windows10?

I have found several methods to register a file type with my own application (double-clicking that file type in Windows Explorer looads that file in my application). Several are very old and seem to be deprecated, others are unclear and lack…
user1580348
  • 5,721
  • 4
  • 43
  • 105
2
votes
1 answer

Converting a hex string representation of a widechar codepoint to a widechar in Delphi

I am having trouble converting text within an edit box to a WideChar. This is being used in code for printing emoji characters. If I manually set the WideChar values like the following it works Emoji[1] := WideChar($D83D); Emoji[2] :=…
Some1Else
  • 715
  • 11
  • 26
2
votes
1 answer

Delphi MacOS project gets Error "Unauthorized to record audio"

A new Delphi 10.4.2 macOS project attempts to record microphone audio but gets this error message in a pop up window: "Unauthorized to record audio." How does a Delphi app get authorization to record audio? I started with blank project so... Project…
Mike at Bookup
  • 1,211
  • 14
  • 32
2
votes
1 answer

Delphi objects: shortcut for TObjectList iteration

I'm starting to learn and actively use OOP in my projects. I've found that constructions like LDevices.Devices[i] look very cumbersome and make code hard to read. So there's my question: is there any way to be able to make a shortcut for a field to…
Alexander
  • 388
  • 1
  • 12
2
votes
0 answers

Why do I get Text = '' stored in my .dfm files? Empty string, as the default, is not supposed to be stored

What is the reason for this surprising behaviour, that seems to have started after I upgraded Delphi from XE2 to 10.4.2, namely that empty string property values get stored to the .DFM file? Empty string is supposed to be a built-in automatic…
Matthias B
  • 404
  • 4
  • 11
2
votes
1 answer

Add an included TColorListBox.Style color group at run-time without overwriting any existing custom colors?

I have a TColorListBox in a Delphi 10.4.2 32-bit VCL Application: object ColorListBox1: TColorListBox Left = 0 Top = 232 Width = 498 Height = 224 Align = alBottom Selected = clScrollBar Style = [cbCustomColors] ItemHeight = 20 …
user1580348
  • 5,721
  • 4
  • 43
  • 105
2
votes
1 answer

TLabel.AutoSize not working when Label.Align = alTop

In a Delphi 10.4.2 32-bit Delphi VCL Application, I have a TLabel set on top of a TCard: object lblColorTransparencyInfo: TLabel AlignWithMargins = True Left = 5 Top = 37 Width = 156 Height = 20 Margins.Left = 5 Margins.Top = 5 …
user1580348
  • 5,721
  • 4
  • 43
  • 105
2
votes
2 answers

TRestRequest.Execute exits thread when responses code is 300 or higher

I need to check specific status codes from a RestResponse however the RestRequest.Execute seems to generate a EHTTPProtocolException when the status codes are not 200. I did take a look at the documentation and it states that The request execution…
Adriaan
  • 806
  • 7
  • 24
2
votes
3 answers

Right-click doesn't update ItemIndex in TControlList

I've added a TPopupMenu to a TControlList, on right-click the ItemIndex isn't updated to reflect the item clicked on. Is there a way to make a right-click respond in a similar way to a left-click? This would be nice so that the user right-clicks on…
Alister
  • 6,527
  • 4
  • 46
  • 70
2
votes
2 answers

Accessing some Outlook OLE object properties fails in a Win10/Exchange Online environment

I have some older code connecting to Outlook through OLE that no longer works running on Win10 where Outlook is set up to connect to Exchange online: It raises an exception with message (Dutch) "De bewerking is afgebroken", probably translated as…
Jan Doggen
  • 8,799
  • 13
  • 70
  • 144
2
votes
1 answer

What is the difference between the -i and -u parameters to the dcc command-line compilers?

What exactly is the -i option of the Delphi dcc command-line compilers (dcc32.exe, dcc64.exe, dcclinux64.exe and others)? As opposed to -u? Help just states this briefly (and Embarcadero documentation does not seem to expand upon the subject): …
Matthias B
  • 404
  • 4
  • 11