Questions tagged [delphi-10.1-berlin]

Delphi 10.1 Berlin is a specific version of Delphi released in April 2016.

Delphi 10.1 Berlin supports development of applications covering Windows 32-bit and 64-bit, 32-bit, 32-bit and 64-bit, and 32-bit. Windows applications may be built using either the framework or the (FMX) framework, whereas the rest of the supported platforms are built under the Firemonkey framework only.

Always use the tag alongside this tag.

580 questions
8
votes
1 answer

Delphi compiler does not warn about this code

Debugging my code, I noticed that the Delphi compiler (Berlin 10.1) does not warn about functions which are without a return value. Is this normal? A simple example: function f(s:string):String; begin …
Shahram Banazadeh
  • 500
  • 1
  • 5
  • 15
8
votes
1 answer

Numeric equivalence between HTML Character Entities and Delphi?

The HTML Character Entity 𝕒: can be created from the number 120146 with this HTML code:

I will display 𝕒

Some of these extended…
user1580348
  • 5,721
  • 4
  • 43
  • 105
8
votes
2 answers

PathDelim VS DirectorySeparatorChar

One can use either System.IOUtils.TPath.DirectorySeparatorChar http://docwiki.embarcadero.com/Libraries/Seattle/en/System.IOUtils.TPath.DirectorySeparatorChar OR System.SysUtils.PathDelim Are there any particular differences, benefits using one…
Gad D Lord
  • 6,620
  • 12
  • 60
  • 106
8
votes
1 answer

How get ownership property of (Method: TRttiMethod) in TVirtualInterface TVirtualInterfaceInvokeEvent?

how i get ownership property of Method: TRttiMethod in OnInvoke method of TVirtualInterface class? I have this interface: IPerson = interface(IInvokable) ['{45CE428C-F880-4D61-A2C1-0F3CB47130B5}'] procedure SetName(const Value: string); …
Passella
  • 640
  • 1
  • 8
  • 23
8
votes
4 answers

Property "ofOverwritePrompt" for TSaveDialog does not work when VCL Styles are used in Delphi 10.1 Berlin

Create a new VCL Forms application On the main form add a Tbutton and a TSaveDialog Set "ofOverwritePrompt" to True in properties for the SaveDialog1 Use: procedure TForm1.Button1Click(Sender: TObject); begin SaveDialog1.Execute(); end; Run the…
Thomas
  • 375
  • 1
  • 2
  • 11
7
votes
1 answer

Wrong MessageDlg icon with DlgType mtConfirmation constant?

In Delphi 10.1.2 Berlin, in a Vcl.Dialogs.MessageDlg function, the DlgType constants mtInformation and mtConfirmation create the same dialog icon. For example: if Vcl.Dialogs.MessageDlg('Do you really want to remove the selected item?', …
user1580348
  • 5,721
  • 4
  • 43
  • 105
7
votes
1 answer

TSpeedButton with TAction - Auto-generated disabled image only considers black

First of all, I already know that when you are implementing a TSpeedButton, when you assign its Glyph, if you do not have more than one glyph, then NumGlyphs should be 1, and when it's disabled, it will automatically use the same image to…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
7
votes
1 answer

Delphi buttons - Different appearance in design time and runtime

Has anyone had this problem ? In design time the button's appearance is normal. However, at runtime it is with the appearance of Windows 98 button. OS - Windows 7 64bit Delphi 10.1 Berlin
7
votes
3 answers

How to add items to TListView with DynamicAppearance?

How can I add items to DynamicAppearance Listview in runtime? On design mode I created the layout of ListView which I want. I added 3 TTextObjectAppearance. How can I set those 3 TTextObjectAppearance text dynamically?
shariful
  • 455
  • 1
  • 9
  • 21
6
votes
1 answer

Project version settings keep reverting back

I have a simple project in Delphi 10.1 Berlin. In the project settings, I have at one point checked on "Pre-Release". Now I have two things that no matter how many times I change them, I come back and it's not saved. These are: Pre-Release checkbox…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
6
votes
2 answers

Delphi Berlin 10.1 Division by zero exception missing

I am surprised not the get division by zero exception. How do I get it back? Berlin 10.1 very recent install, new project, procedure TForm1.Button1Click(Sender: TObject); var a: Double; begin a := 5/0; // No exception …
Doege
  • 341
  • 4
  • 12
6
votes
2 answers

Delphi pass array by reference

In C++ is possible to pass to a function a vector by const reference in this way: void test(const std::vector& a); This is useful when the vector is very big and I want to avoid the waste of time of making copy of it. I know that the same code…
Raffaele Rossi
  • 2,997
  • 4
  • 31
  • 62
6
votes
2 answers

How can the subclass constructor be called from the parent class?

Is there a way to invoke Create of the subclass from the parent class? Below there is this Duplicate method in which I want the constructor of the subclass to be invoked instead, so that the test at the bottom succeeds. type IBla =…
user3942667
6
votes
4 answers

Dealing with circular strong references in Delphi

I got two classes (in my example TObject1 and TObject2) which know each other via interfaces (IObject1, IObject2). As you probably know in Delphi this will lead to a memory leak as both reference counter will always stay above zero. The usual…
5
votes
1 answer

PostMessage for all instances of a specific form (ClassName):

In a VCL Forms program, I have a Form that implements a method for handling windows messages and updating some controls on the Form, something like: procedure OnMsgTest (var Msg: TMessage); message WM_CUSTOMTEST; I use PostMessage with a custom…
Marcoscdoni
  • 955
  • 2
  • 11
  • 31
1
2
3
38 39