543 questions
0 votes
1 answer
195 views
Pass an array of array as a parameter
I have such an array: 12 | 18 | 22 | 26 | 28 | 32 | 34 | 36 | 50 16 23 33 37 As you can see, it consists of two rows, but some have one ...
0 votes
0 answers
474 views
Move directory and inherit permissions from target folder (as Copy would do)
That's what I want to achieve for my VCL application: I extract a ZIP file to a directory in %TEMP%. If everything was okay, I move the directory to the target dir. For the move operation I use ...
0 votes
1 answer
1k views
How do I save a physical file starting from a TJSONObject?
How do I save a physical .json file to my C: \ drive starting from my JSONObject3 object? procedure CreateJSON; var JSONObject2, JSONObject3: TJSONObject; JSONValue1, JSONValue2: TJSONValue; ...
0 votes
0 answers
586 views
How can I assign values to TJSONValue using Delphi XE4 unit Data.DBXJSON?
How can I assign values to TJSONValue using Delphi XE4 unit Data.DBXJSON var JSONValue: TJSONValue; JSONString: TJSONString; JSONString := TJSONString.Create('Name'); JSONValue := TJSONObject....
4 votes
0 answers
369 views
Exception on FormCreate is not thrown
By default any unhandled exception occurring in TForm.OnCreate will lead to an error message beeing shown instead of an exception beeing thrown. The reason is this code in VCL.Forms: function ...
1 vote
2 answers
323 views
How to set `ElevationRequired` for `TBitBtn`
I need to mark a TBitBtn (not TButton), that the button action requires elevation. I set ElevationRequired to True, but I do not get the shield icon. To reproduce, place a TButton and a TBitBtn on a ...
0 votes
0 answers
90 views
Windows Style Theming Makes Window Stutter When Dragged
I have investigated this problem across some different computers with theming/classic-theme and/or theme support disabled in my app... Problem when Windows is configured to draw the window while ...
0 votes
1 answer
180 views
Show array element - when index is a variable - inaccesible value
during debbugging, why I can't view an array element? when index is a variable (arrai[i]) I get Inaccesible value issue But when index is a const number (array[1]) it works fine. Please view my ...
0 votes
0 answers
238 views
SqlDirect Delphi XE4 TLS 1.2
We have developed a Delphi app on windows 10. We use sqldirect to connect to sql server 2017. Is it possible to use sqldirect with Tls 1.2? Or set the provider to msoledbsql?
1 vote
0 answers
450 views
How to fix the "Incompatible types: 'PPointer' and 'Pointer'" Delphi compiler error?
When building a program that uses the Graphics32 library (the old 1.9.1 version) with Delphi XE4 (targeting Win32, if it matters), I got the following compiler error: [dcc32 Error] GR32_LowLevel.pas(...
5 votes
1 answer
3k views
Delphi - Icon of compiled EXE is wrong and cannot be changed
I'm having this strange issue for the first time in my 15+ experience of using Delphi. This is the icon I set in the project options (XE4): And this is the resulting application icon after compiled: I'...
6 votes
2 answers
662 views
Constant `array of cardinal` produces error 'Constant expression violates subrange bounds"
Why the following code: const ANSICOLORS: array of cardinal = [ $000000,//0 $800000,//1, compilation error starts with this value $008000,//2 $808000,//3 $000080,//4 $800080,...
7 votes
1 answer
1k views
How to make TSynEdit's Wordwrap same as TMemo's?
I'm using TSynEdit as a more user-friendly TMemo, mostly for the advanced shortcuts, UNDO/REDO, and so on. Other things are OK, except the wordwrap behavior, please check the attached screenshot ...
0 votes
0 answers
216 views
TToolButton Indeterminate state set to true by Delphi? (grays images)
I have discovered a weird issue with my Delphi XE4 program. I have a toolbar with some toolbuttons. They also have a dropdown. I have code like this: m_View_SideColumns.Enabled := ...
1 vote
3 answers
795 views
Manifest and GetVersionEx
I am currently experimenting with adding an example.manifest file next to my example.exe program, so GetVersionEx() returns correct information. However - it seems to not have made any difference at ...