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
1
vote
1 answer

How send/receive a List of elements over socket?

I have the following code, where I can draw several rectangles and make a hole to each. How can I send the RectList object over a socket (TServerSocket) and recover (receive in a TClientSocket) this object directly to a variable of same type (var…
user13342561
1
vote
1 answer

How to migrate from ADO Filtering code to Firedac

I have this code: datamodule1.tbabonne.Filter := ''; if (scGPEdit2.Text) = '' then exit ; try ref_Abonne:= QuotedStr (scGPEdit2.Text + '*'); if (scGPEdit2.Text <> '') then datamodule1.tbabonne.Filter:= Format('(ref_Abonne LIKE…
bissleboss
  • 13
  • 3
1
vote
1 answer

Is it possible to create a generic Mediator for Delphi to handle generic commands

I must first admit that I am from the .Net world and am currently relearning Delphi (XE 10.x) (from back in high school - MANY years ago). In .Net, the mediator pattern is fairly well handled by libraries such as MediatR or MassTransit. Yet, I have…
1
vote
1 answer

How to avoid unwanted alignment of components when clicking in the Form Designer?

I'm using Embarcadero Delphi 10.3 Version 26.0.36039 on Windows 10. Step 1: place aligned Edit and Button controls on the Form. (Edit.Top = 42) Step 2: Move the Edit down 2 points (Edit.Top = 44) Step 3: Click on the Edit. Bam! The control has moved…
k.e.d.r.
  • 65
  • 1
  • 6
1
vote
0 answers

TidHTTPServer seems to leak connections on Exception

It seems that TidHTTPServer has a connection leak when connections fail. I have code in the OnException Event to count the current connections: function TMain.GetCurrentConnectionCount(AWebService: TIdHTTPServer): Integer; begin with…
Wolfgang Bures
  • 509
  • 4
  • 12
1
vote
1 answer

How can I generate a Delphi string literal escaped the same as the Evaluate\Modify dialog?

I need to generate strings as displayed when invoking the IDE's Evaluate\Modify on a string value. The string as displayed in that window can be used directly in Delphi code. I am writing string constant literals to an include file that is used in…
Jasper Schellingerhout
  • 1,070
  • 1
  • 6
  • 24
1
vote
1 answer

MessageDlg showing before Form

I have a MainForm, that while activating will call another Form to change app date (modal, show, close), and then make some checks and display a message if it applies in response to the checking. Is there a way to show (paint) the MainForm, after…
Speaker
  • 189
  • 2
  • 10
1
vote
0 answers

Different treatment of division by 0 in Delphi 10.3 VCL and FMX applications

The command a: = 1/0; leads to different results: VCL - WIN32: floating point divide by zero VCL - WIN64: FLOAT_DIVIDE_BY_ZERO FMX - Win32, Win64, Android: no exception, a = 0 Is that intentional?
Peter Kloß
  • 119
  • 8
1
vote
0 answers

How to bind Model properties with Form Textboxes?

I am new to Delphi VCL development. I am presently using Delphi 10.3. I am facing a problem binding my Model data with Textboxes on a Form. For example, a Person model has 10 properties. To display those property values, do I have to assign the…
SP Sarkar
  • 98
  • 7
1
vote
0 answers

Is the implementation of TFDCustomConnection.ExecSQL bad and should it be corrected?

This is from the unit FireDAC.Comp.Client: function TFDCustomConnection.ExecSQL(const ASQL: String; AParams: TFDParams; var AResultSet: TDataSet): LongInt; var oQry: TFDQuery; begin oQry := TFDQuery.Create(nil); try oQry.Connection :=…
maf-soft
  • 2,335
  • 3
  • 26
  • 49
1
vote
1 answer

How put 1st item of ComboBox as already selected?

How put 1st item (index 0) of ComboBox as already selected? procedure TForm1.FormCreate(Sender: TObject); begin with ComboBox1.Items do begin Add('1st Item'); Add('2nd Item'); Add('3rd Item'); end; end; // PS: Change the Style…
user13342561
1
vote
3 answers

How to store settings in Android Application?

I want my application to save/load settings (and preserve them when "upgrading"/installing a new version). Which component can I use for this? Registry wont be available I guess :-) UPDATE: Settings like a string, a number or a boolean. Application…
Wolfgang Bures
  • 509
  • 4
  • 12
1
vote
1 answer

How capture a window with correct dimensions?

I'm testing for this code example (that use PrintWindow api) to capture a specific window by handle, and saw that window captured is greater than original (when captured with full desktop). There's a possibility to capture the window with same…
user13342561
1
vote
1 answer

How align mouse clicks X, Y with a specific window handle?

With reference to my previous question, now i have this formula: X := Round((X * ResolutionX) / Image1.Width); Y := Round((Y * ResolutionY) / Image1.Height); // where ResolutionX and ResolutionY is Client screen resolution. to send mouse click…
user13342561
1
vote
2 answers

How can i import data/information values from databases and display them into labels captions?

What I'm using for my database (all connected together): ADOConnection1, ADOQuery1, DataSource1, MS-Access, Delphi 10.3 I'm trying to get the values(of all types, mostly strings) from my Database (that's on ms access Database) and put them to text…