Questions tagged [delphi-10.4-sydney]

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

363 questions
0
votes
0 answers

Find References not working in the IDE when identifier is selected

In the Delphi 10.4.2 IDE Code Editor, when selecting an Identifier, the Find References menu item in the Search menu is disabled (grayed out): I seem to remember that it did work in previous versions of the Delphi IDE. So why it is not…
user1580348
  • 5,721
  • 4
  • 43
  • 105
0
votes
1 answer

Memory leak When Returning TJSONVALUE from Function

I have a JSON array of objects that I iterate. From each element of the array I retrieve further json data via a function that returns a JSONValue. I then must add that returned jsonvalue to the specific array element. It works perfectly except that…
JohnT
  • 31
  • 5
0
votes
0 answers

Partially transparent form without click-through?

In a Delphi 10.4.2 win-32 VCL Application in Windows 10, I use this form code to make the form partially transparent: object Form1: TForm1 Left = 0 Top = 0 BorderStyle = bsNone Caption = 'Form1' ClientHeight = 378 ClientWidth = 589 …
user1580348
  • 5,721
  • 4
  • 43
  • 105
0
votes
0 answers

Correct handling when drawing on the desktop and final cleanup?

In a Delphi 10.4.2 32-bit VCL Application in Windows 10, I draw on the desktop with this code: var FTempCanvas := TCanvas.Create; try // get the device context of the desktop and assign it to the canvas. // Then all drawing on the canvas will…
user1580348
  • 5,721
  • 4
  • 43
  • 105
0
votes
0 answers

How to create a mail with TSendMail?

In a Delphi 10.4.2 VCL Application in Windows 10, I followed the TSendMail example here: http://docwiki.embarcadero.com/CodeExamples/Sydney/en/TSendMail_(Delphi) ... to create a InternetSendMail1 action in the ActionList. But when I execute this…
user1580348
  • 5,721
  • 4
  • 43
  • 105
0
votes
0 answers

FMX: How to create a ToolWindow form that cannot be maximised?

I have a form in my application which is triggered with ShowModal. I have set the BorderStyle to ToolWindow because I don't want it to be resizable. However, I discovered that it can still be maximised by double clicking the title bar. I don't want…
XylemFlow
  • 963
  • 5
  • 12
0
votes
0 answers

How to set the playback speed of TMediaPlayer?

I'm using Delphi 10.4 for developing an Android mobile application. I'm using the TMediaPlayer component for playing MP3 files. I need to set the playback speed of the media files as 1x, 2x, and 4x. I did not find any sample code regarding this. How…
Ias Trainer
  • 79
  • 1
  • 8
0
votes
2 answers

Check if a string constant is contained in a set of strings

What is the best and most SIMPLE way to do this in modern Delphi (Sydney): var ThisExtension: string; if ThisExtension in ['.jpeg', '.jpg', '.jpe', '.jif', '.jfif'] then The above code gives me this compiler error: E2015 Operator not applicable to…
user1580348
  • 5,721
  • 4
  • 43
  • 105
0
votes
0 answers

TOpenPictureDialog for FMX?

In VCL I used TOpenPictureDialog for loading of image files because it's useful to see a preview when selecting from a long list of files. I also used it for loading my own binary file format by creating a class derived from TGraphic, overriding the…
XylemFlow
  • 963
  • 5
  • 12
0
votes
0 answers

How to implement a TPanel.OnEndResize event-handler?

In a Delphi 10.4.2 32-bit VCLApplication, I RESIZE a TPanel (align = alClient) by moving a TSplitter control with the mouse. However, the Panel could also be resized by other actions. In this scenario, I need an automatic action to be taken ONCE…
user1580348
  • 5,721
  • 4
  • 43
  • 105
0
votes
0 answers

Delphi FMX project going into the background

How can my Delphi 10.4.2 project detect that it is going into the background? I've tried using TMainWindow.FormDeactivate() but this leaves the floating tool window staying on top of all other application windows as the project goes into the…
Mike at Bookup
  • 1,211
  • 14
  • 32
0
votes
0 answers

Conflict between similarly named resourcestrings and constants

We have: a uResourceTableFields.pas unit defining consts for fieldnames this contained SHours = 'tt_hours'; a uResource.pas unit containing resourcestrings These are use for the UI and are subject to translations I added SHours = 'Uren'; to…
Jan Doggen
  • 8,799
  • 13
  • 70
  • 144
0
votes
2 answers

How to disable FMX ComboBox Mouse Wheel scroll

How can I disable the mouse wheel scroll on a FMX TComboBox when hovering over it? I've tried overriding the MouseWheel method without any luck. I'm most likely doing it wrong as I'm not experienced with overriding. REF: MouseWheel I've gone ahead…
Adriaan
  • 806
  • 7
  • 24
0
votes
0 answers

FMX TEdit is unable to accept the ASCII single quote on iOS

I'm using Delphi 10.4 in an FMX application and, although there is no problem on Windows and Android targets, it is not possible, for the user, to enter a single quote character ' into any TEdit field on the iOS platform... Note that if the field is…
Mouscap
  • 338
  • 3
  • 15
0
votes
0 answers

Why is recorded microphone audio sometimes truncated in Delphi?

My Delphi 10-4-2 FMX project captures microphone audio to a file using this code: private fFileIncrement: Integer; fMic: TAudioCaptureDevice; procedure TForm1.RecordButtonClick(Sender: TObject); begin fMic :=…
Mike at Bookup
  • 1,211
  • 14
  • 32