1,720 questions
-3
votes
0
answers
110
views
Application freezes/crashes [closed]
We have ongoing issues with action controls, such as PopupActionBar and ActionMainMenuBar (Delphi 13.1). A small number of users experience a freeze/crash of our app right after startup. The app doesn'...
0
votes
1
answer
140
views
Highlight cells in TCalendar
Is there any way to highlight various non-contiguous cells in Delphi's TCalendar component at the same time? And not only the actual day?
I need to let the user mark different days in different cells, ...
Advice
1
vote
11
replies
514
views
Why would anyone use VCL when there is FMX?
At my company, our older developers keep insisting to use VCL for projects and I really do not understand why. They do not seem to know why either. They just say use VCL because it is better and FMX ...
Advice
1
vote
4
replies
204
views
How to find a character at a given mouse position?
Given an x,y position from a mouse event, can I find the character (e.g. of a string in a ListBox) at that position? I want to do this to test the character and process the mouse event accordingly, ...
1
vote
1
answer
184
views
TDirect2DCanvas versus TCanvas regarding TPenMode
I am currently trying to switch from TCanvas to TDirect2DCanvas for some drawing routines, as I want to speed things up a little bit. I have stumbled upon the missing TPenMode. I did not find a ...
1
vote
0
answers
153
views
Panning with TStringGrid (VCL)
I have a TStringGrid with several hundred rows of data in it. I want to enable the user to scroll through the data by panning (ie using their finger to pan up or down) on a touch-screen device.
I have ...
0
votes
0
answers
77
views
Crystal Reports - Printer selection disabled in print dialog, how to enable it?
I am using Delphi 7 with Crystal Reports XI (11) via the TCrpe (VCL) component.
When I print a report, Crystal shows the following Print dialog.
It only shows:
System Printer (Microsoft Print to PDF)
...
4
votes
1
answer
137
views
How do I include an image from resources in my TWebBrowser page in Delphi?
In my Delphi 11.3 (on Windows 11) program I have a TWebBrowser component which shows an HTML page from resources. The resources also contain an image. How can I refer to the image resource in the src ...
1
vote
1
answer
298
views
How to detect if there's a Windows Update available using Delphi code?
I need to know from within my app whether the person has a pending Windows Update available or not, and then prompt him to update his Windows if it's not updated yet.
Is there a way to check if an ...
-1
votes
1
answer
180
views
How to get the names of my active monitors using Delphi VCL? [duplicate]
I found this function that is supposed to get the names of all the actively plugged-in monitors on the computer:
function GetMonitorNames: TArray<string>;
begin
Result := [];
var ...
0
votes
1
answer
137
views
How to get the active monitor count in Delphi VCL?
I'm trying to get the count for the amount of monitors on my computer using VCL and Delphi.
For my purposes, it only needs to work on Windows 11 and Delphi 13. I don't care about older versions.
Is ...
3
votes
1
answer
203
views
Select a new monitor as a display using VCL
I want to switch my application from one monitor to another. The code below work many times perfectly as expected but sometimes it only moved the titlebar of my application to the new screen.
How to ...
0
votes
1
answer
128
views
Why does my VCL form created inside a DLL disappear when minimised
I have a Windows VCL application written in C++Builder. Some of the UI is implemented inside a DLL rather than directly in the main EXE.
The DLL exports a function that creates and shows a VCL form, ...
1
vote
0
answers
115
views
TImage image is being truncated
I have written a Print Preview option for a larger application. Mostly it works to my satisfaction, except sometimes the image is truncated.
The code below is a much cut-down version that shows the ...
2
votes
1
answer
139
views
What's the difference between Text and EditValue in DevExpress TcxTextEdit component?
I have been tasked to convert one of our VCL DevExpress forms over to FMX. I am now busy replacing all of the TcxTextEdit components with TEdit components.
The problem is that in some places, the code ...