Questions tagged [delphi-10.4-sydney]

Delphi 10.4 Sydney is a specific version of Delphi released in May 2020.

363 questions
2
votes
2 answers

Is there a StringHelper for TCaptions?

Is there a unit I can add to provide a StringHelper for TCaption? Using Edit1.Text.Trim, Edit1.Text.ToInteger, etc is much neater than Trim(Edit1.Text), StrToInt(Edit1.Text), etc.
Marc Guillot
  • 6,090
  • 1
  • 15
  • 42
2
votes
1 answer

What's the fastest way to list all the exe files in a huge directory in Delphi?

At the moment I'm doing something like this: var Files: TArray; if IncludeSubDirs then Files := TDirectory.GetFiles(Path, '*.exe', TSearchOption.soAllDirectories) else Files := TDirectory.GetFiles(Path, '*.exe',…
AlexV
  • 22,658
  • 18
  • 85
  • 122
2
votes
1 answer

Delphi 10.4.2 FMX How to make a head up notification?

When creating notification using TNotificationCenter and TNotification, it only appear in the notification drawer, it won't have pop up mini floating box like WhatsApp msg notification for examples. Is there any properties that will enable that?
RenSword
  • 79
  • 8
2
votes
1 answer

How change shortcut path without update your icon?

I have the following code that changes path of one shortcut. Happens that when path is changed, the icon also is updated to icon of new application. How change path wihout update icon of shortcut? uses ActiveX, ComObj, ShlObj; ... function…
FLASHCODER
  • 1
  • 7
  • 24
2
votes
0 answers

Showing on windows taskbar thumbnail/preview of a modal form

I'm working on modernizing an old Delphi 7 app for a customer. I already successfully migrated it to Delphi Sydney but the code I'm working with has a ground problem which is all the forms (nearly 200) are shown using Tform.showmodal (and sometimes…
plexus
  • 23
  • 5
2
votes
1 answer

Press an Accessory button in ListView item header

I am using This custom Listview application. I wanted to Add 2 Buttons in the header of each item. Apparently that is not possible ? The custom Header only gives One TextButton, the accessory button is unclickable for some reason The below event…
Liba Drako
  • 31
  • 3
2
votes
1 answer

Create C# DLL and Call from Delphi

I want to use a 3rd-party dotnet library (just a couple of functions) from Delphi and plan to create a C# DLL to be an interface. I've created a simple demonstration DLL as a test with C# (VS 2019/.NET5) with a function that returns an integer…
Greg Bishop
  • 517
  • 1
  • 5
  • 16
2
votes
1 answer

How can I stretch a Image displayed on a TGlyph to the size of the TGlyph in a Multi Device Application?

The TGlyph has a Stretch boolean value, but on change it does not appear to change anything.
Codex
  • 101
  • 1
  • 11
2
votes
0 answers

TPanel.AutoSize does not work in a particular situation

In a Delphi 10.4.2 Win32 VCL Application on Windows 10, I use a TPanel with AutoSize = True. The documentation says: When AutoSize is True, the control resizes automatically when its contents change. However, this is not the case when the size of…
user1580348
  • 5,721
  • 4
  • 43
  • 105
2
votes
2 answers

Why my delphi 10.4.2 application doesn´t run on android 11 (api level 30)?

I have created a fresh multi device application in Delphi 10.4.2. Applications created with this Delphi version should run without problems in Android 11 API LEVEL 30. The test application is just an empty form, it does not have anything implemented…
Leo Bruno
  • 474
  • 3
  • 16
2
votes
3 answers

How to maximize form to desktop size?

In a Delphi 10.4.2 Win32 VCL application running on Windows 10, in a dual-monitor setup, when I set my MainForm (or any other secondary form) to start maximized by setting WindowState := wsMaximized, then the form is maximized only on the Primary…
user1580348
  • 5,721
  • 4
  • 43
  • 105
2
votes
1 answer

Where can I intercept the row change in a derivative TDBGrid?

I want to know on an overriding of DrawColumnCell if the grid is drawing its active row. I thought of keeping an ActiveRecno private variable to check if the DrawColumnCell is drawing that row. I tried intercepting the DataChange of the Datasource…
Marc Guillot
  • 6,090
  • 1
  • 15
  • 42
2
votes
1 answer

Getting new width and height of Bitmap in a TImage if Wrapmode is set to "Fit"

I'm loading a 5000x5000 png image onto a TImage with a wrapmode being set to Fit. I want to then get the height and width of the bitmap thats being shown in the UI however I seem to only get the original size of the bitmap and not the size of the…
Adriaan
  • 806
  • 7
  • 24
2
votes
1 answer

How to customize Hint Font.Size?

In a Delphi 10.4.2 32-bit VCL application on Windows 10, I am trying to customize the Hint Font.Size: type TExHint = class(THintWindow) constructor Create(AOwner: TComponent); override; end; var Form1: TForm1; implementation …
user1580348
  • 5,721
  • 4
  • 43
  • 105
2
votes
0 answers

Dropping a table and foreign keys for a Microsoft Access DB using FireDAC (JET)

I need to (programmatically) drop a table from a Microsoft Access database (.mdb file in 2002-2003 format). When I drop the table, I need to drop all the foreign keys. The foreign keys were created with different names, so I need a way to iterate…
Mark Elder
  • 3,987
  • 1
  • 31
  • 47
1 2
3
24 25