delphi-10.1-berlin Questions

3

Solved

It is easy to detect whether the vertical scrollbar of a TScrollBox is at the very top or not: IsScrollBarAtTop := ScrollBox1.VertScrollBar.Position = 0; But how can I detect whether the verti...
Thracophrygian asked 5/12, 2016 at 9:3

6

Solved

I have a VCL application that I am porting to FireMonkey. One of the things that I ran into is that MessageDlg(...) is deprecated in FireMonkey. On digging a bit further, I understand that I have t...
Pinkney asked 17/3, 2017 at 8:49

2

Solved

Is there any way to change the small icon image (default used application icon) in the notification in the Android application with Delphi? The standard way to easily create a notification is: va...
Paperweight asked 30/7, 2016 at 20:46

2

Solved

With the latest Delphi version (Berlin/10.1/24), is the [Ref] attribute really necessary? I ask this because the online doc says: Constant parameters may be passed to the function by value or b...
Dmz asked 2/12, 2016 at 9:58

1

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...
Finicking asked 24/5, 2017 at 21:46

3

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 TTextObjectAppeara...
Emmittemmons asked 20/5, 2016 at 21:17

6

Solved

In Delphi 10 Seattle I could use the following code to work around overly strict visibility restrictions. How do I get access to private variables? type TBase = class(TObject) private FMembe...
Hatchett asked 19/4, 2016 at 10:57

1

Solved

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...
Vaseline asked 12/7, 2019 at 16:32

1

Solved

I'm creating my mutex: FMutex := TMutex.Create(nil, False, 'SomeDumbText'); and use it in a method which calls another method using the same created mutex: procedure a; begin FMutex.Acquire; ...
Sommer asked 14/12, 2018 at 10:40

4

Solved

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: TO...
Wriggle asked 20/7, 2016 at 15:43

1

I just faced a strange compiler error when trying to define nested generic record. Nesting works fine with classes and interfaces, but not with records somehow. type TRec<T> = record Valu...
Southsouthwest asked 18/4, 2018 at 8:17

1

Solved

Having the following generics class TTuple<T1, T2> = class protected fItem1: T1; fItem2: T2; public constructor Create; overload; constructor Create(Item1: T1; Item2: T2); overload; ...
Priestess asked 3/3, 2018 at 10:41

1

Solved

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;...
Charitacharitable asked 4/2, 2018 at 8:13

1

Solved

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); messag...
Murial asked 9/1, 2018 at 13:57

2

Solved

I need to sort arrays by integer field, with 1-n sorted at the beginning and zeros last: 0,0,3,1,2 -> 1,2,3,0,0 I don't know how to sort it in one go, so I tried in 2 sorts, but it doesn't produce...
Anticipant asked 6/1, 2018 at 16:33

1

Solved

I have client 64 bit Windows 7 installed on his computer. Below same codes gives different results on a dummy application and in my application. My application is group project and have 25 packages...
Supernaturalism asked 20/12, 2017 at 12:8

2

Solved

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 ...
Reenareenforce asked 2/12, 2017 at 19:23

1

Solved

I have an application where I catch exceptions and show the message text to the user as part of the error message. Allthough RAD Studio (10.1) is set to English and the Locale ID is set to 409 Engl...
Kinesics asked 13/11, 2017 at 12:34

1

Solved

I have a system that loads some text files that are zipped into a ".log" file and parse then into informational classes using multiple threads that each deals with a different file and adds the par...
Aquila asked 24/10, 2017 at 13:28

1

Solved

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 re...
Aristotelianism asked 13/10, 2017 at 7:43

1

Solved

The HTML Character Entity 𝕒: can be created from the number 120146 with this HTML code: <!DOCTYPE html> <html> <style> body { font-size: 20px; } </style> &lt...
Childers asked 21/9, 2017 at 19:6

1

Solved

I have seen several Delphi examples of TRegEx usage like the following one in Delphi 10.1.2: try RegexObj := TRegEx.Create(REGEX_EXTRACTEMAILADDRESSES, [roIgnoreCase]); MatchResults := RegexObj...
Rubstone asked 11/8, 2017 at 21:37

4

Solved

Both Cardinal and Single are 4 byte / 32 bit datatypes, but when I typecast them to each other I get an Invalid Typecast error in Delphi 10.1 (Berlin). lSingleVar := Single(lCardinalVar); I am N...
Spittoon asked 8/5, 2017 at 11:12

2

Solved

I have a unit which is for both Delphi & Lazarus. In Lazarus the unit compiled without any exception but in Delphi it gives me Error Data type too large: exceeds 2 GB. Below is the code: unit ...
Pouliot asked 4/4, 2017 at 7:19

3

Solved

I would like to use Gabriel Corneanu's jpegex, a class helper for jpeg.TJPEGImage. Reading this and this I've learned that beyond Delphi Seattle you cannot access private fields anymore like jpege...
Reber asked 20/5, 2016 at 16:11

© 2022 - 2024 — McMap. All rights reserved.