Questions tagged [delphi-10.3-rio]

Delphi 10.3 Rio is a specific version of Delphi released in November 2018.

Delphi 10.3 Rio supports development of applications covering 32-bit and 64-bit, 32-bit, 32-bit and 64-bit, 32-bit, and server 64-bit. Windows applications may be built using either the framework or the (FMX) framework, whereas the OSX and mobile platforms are built under the FireMonkey framework only.

This version of Delphi brings several enhancements to the core Delphi pascal language, including inline variable declarations and type inference, as well as RTL performance improvements, and changes to Delphi's ABIs for better C++ interoperability across all platforms. It also sports several IDE UI redesigns, better High-DPI support to the VCL, support for iOS 12 and Android API level 26+, and begins Embarcadero's push to phase out its ARC memory management model for TObject classes, starting with the Linux 64-bit compiler.

Always use the tag alongside this tag.

References

546 questions
4
votes
0 answers

Delphi 10.3: unable to open DFM in IDE, out of memory

I'm developing a project in Delphi Rio 10.3 Community and it currently has 24 units. This particular form I'm having problems with contains 28 frames of the same type, each containing a TChart component with a few buttons and checkboxes (print…
Flav
  • 41
  • 2
4
votes
2 answers

How to load a file into a stream on Android knowing its Jnet_Uri?

I'm writing an Android FMX app in Delphi 10.3 Rio. There I'm selecting photos from the gallery (via TJIntent.JavaClass.ACTION_OPEN_DOCUMENT) and getting back Jnet_Uri entries. I can use those to read image EXIF (with TJExifInterface). Now I also…
Kromster
  • 7,181
  • 7
  • 63
  • 111
4
votes
1 answer

Adding CustomHeader in TRESTClient

I need to add CustomHeader in my restclient to add an apikey. In my code I use (FRESTClient is TRESTClient) FRESTClient.SetHTTPHeader('X-XXX-ApiKey', 'fdfd121231212fds'); but it is not set in my http header when I see it on fiddler. What is the way…
Hugues Van Landeghem
  • 6,755
  • 3
  • 34
  • 59
4
votes
3 answers

How to invoke native camera in Delphi Android application?

I'm using Delphi 10.3 Community Edition to write a simple Android app and trying to invoke native device camera, but getting an error instead. I'm following the official Delphi guide: On the Form Designer, select the button (for taking a photo). …
Kromster
  • 7,181
  • 7
  • 63
  • 111
3
votes
1 answer

How to convert SVG file to PNG file with transparency using Delphi

I want to convert a SVG file to PNG file programmatically. I'm using Delphi 10.3.3 with Skia4Delphi, but this code snippet doesn't respect transparency. It creates black background. var LBitmap: TBitmap; MyPng: TPNGImage; begin if…
Xel Naga
  • 826
  • 11
  • 28
3
votes
2 answers

Adjust two controls vertically by their font baseline at runtime

In my applications there are many cases when I have several groups of TLabel followed by a TEdit on my Forms, you know... when some properties needs to be edited. I want to align vertically those controls so that their font baseline will be on the…
Marus Gradinaru
  • 2,824
  • 1
  • 26
  • 55
3
votes
0 answers

TActionMainMenuBar painting bug when VCL Styles are enabled

There is a critical and easy to reproduce bug in TActionMainMenuBar that only happens when VCL Styles are enabled and I wonder if someone has already seen it and found any workaround. I'm using the latest Delphi 10.3.3 Rio (also happens on 10.4.1…
Alexandre M
  • 1,146
  • 12
  • 23
3
votes
1 answer

How to compile with DCC32 as in the IDE

I'm trying to automate building of my project, using DCC32 to compile it. The same project compiled in the IDE will compile OK, but when i call DCC32, i get the error below : c:\myproject>dcc32 myproject.dpr Embarcadero Delphi for Win32 compiler…
delphirules
  • 6,443
  • 17
  • 59
  • 108
3
votes
1 answer

JSON object- how to iterate through all properties without knowing their names?

I have a fairly simple JSON: [ { "hero-img": "girl-ipad.png", "main-story-headline": "How to Stay Mentally Healthy During a Pandemic", "main-story-paragraph": "lorem ipsum", "main-story-button-text": "Read More" }, …
Dejan Dozet
  • 948
  • 10
  • 26
3
votes
2 answers

How to assign event handler to event property using RTTI?

I have a class that has a few event properties, and another class that contains the event handlers. At compile-time I don't know the structure of either class, at run-time I only get to know the match between event property and event handler using…
3
votes
2 answers

Delphi Firemonkey get UTC time

How does one get the UTC time in Firemonkey? I tried this code from another Stackoverflow answer but it appears GetSystemTime() is not available in FMX. function NowUTC: TDateTime; Var UTC: TSystemTime; begin GetSystemTime(UTC); Result :=…
Mike at Bookup
  • 1,211
  • 14
  • 32
3
votes
1 answer

Extract comma separated units from source code using RegEx

I want to use Regular Expressions to extract information from my source code. Can you help me to build a RegEx that retrieves the units used on the source code ?. Source code sample: unit ComandesVendes; interface uses Windows, Messages,…
Marc Guillot
  • 6,090
  • 1
  • 15
  • 42
3
votes
2 answers

How to load an icon from resources to a TImage?

I try the following code and it's not working... LoadIconWithScaleDown returns a negative error code. unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls,…
Marus Gradinaru
  • 2,824
  • 1
  • 26
  • 55
3
votes
1 answer

Can I use wildcards to compare strings?

I have a set of files: 001.txt 001a.txt 002.txt 002a.txt ... I am trying to use the following code to exclude items ending with a, such as 001a.txt PROCEDURE TForm1.FindFiles(StartDir, FileMask: STRING); VAR sr: TSearchRec; IsFound:…
Jsk
  • 159
  • 1
  • 13
3
votes
0 answers

Making the horizontal scroll wheel work in a VCL application, even with a Logitech MX Master mouse

I am attempting to implement support for the horizontal scroll wheel in various of my own custom VCL controls, but it seems to be tricky, at least if you are using the Logitech MX Master mouse. To be concrete, let's drop an ordinary TScrollBox on a…
Andreas Rejbrand
  • 105,602
  • 8
  • 282
  • 384
1 2
3
36 37