1,709 questions
1
vote
1
answer
155
views
How to SelectAll text when a TEdit gains input focus by the user clicking?
Short Version
How can i select all text in a TEdit when the control gains input focus from the user clicking the edit box?
Motiviation
Following the Windows User Design Guidelines for a "search&...
0
votes
1
answer
177
views
What is the purpose of the "HORSE_VCL" compilation directive?
I have started using the horse web framework for building an API in Delphi. The VCL sample mentions the following as a comment in the Main.Form.pas file:
// Need to set "HORSE_VCL" ...
0
votes
1
answer
96
views
{dcc64 Fatal Error} F1026 File not found: 'cxLibraryRS29.dcp' (VCL + DevExpress)
Heyllo.
I just upgraded my project to Delphi 13 and latest DevExpress, but now I'm getting this new error in one of my frames:
[dcc64 Fatal Error] frameAdmin.pas(8): F1026 File not found: '...
4
votes
1
answer
190
views
Can there be a non-visual (without dfm) base form between TForm and any other form of the app?
In my Delphi 2009 VCL application, I have several base forms, like:
TListBaseForm = class(TForm)
TEditableListBaseFrom = class(TForm)
TEditBaseForm = class(TForm)
Each of these base forms is using ...
2
votes
1
answer
89
views
How to prevent dithering when rendering a 24 bpp bitmap with GDI+?
In C++Builder, I have a small VCL application that creates a 100 x 100 pixel, 24 bpp Gdiplus::Bitmap and fills it with the default form background color (clBtnFace / COLOR_BTNFACE). A TPaintBox fills ...
2
votes
1
answer
161
views
How to disable "blow up" behavior when opening a dialog window on Windows 11?
I have a VCL app written in Delphi 12.3. It displays a dialog over a form. The dialog may be displayed as the result of a toolbar speedbutton click, or from a menu selection; if called from the ...
1
vote
2
answers
96
views
How to read a TBitmap property from an old DFM stream into a TPicture property in C++Builder 1?
In C++Builder 1 (ancient, I know), I have a class TGlyph with a Graphics::TBitmap property:
class TGlyph : public TPersistent
{
typedef TPersistent inherited;
private:
Graphics::...
3
votes
3
answers
303
views
Should I use FileExists(Path) or TFile.Exists(Path) in Delphi?
I'm always working on the latest Delphi and so I have TFile.Exists(Path) available to me, but currently at my company, all of our code uses the older FileExists(Path) method.
What are the differences ...
1
vote
1
answer
117
views
Problem with TVirtualTreeView EditLink assignment in C++Builder
I have a problem with assigning an EditLink to TVirtualStringTree in Embarcadero C++Builder. When I try to assign a new editor class, only the default editor is working.
Only the constructor is called ...
0
votes
1
answer
120
views
Changing OpenGL (wgl) context to a different window handle
I am creating an application using OpenGL (4.2). By default, the rendering is done on a panel in a window, it works without issues, but the panel can be docked/undocked, which causes the underlying ...
0
votes
0
answers
39
views
Error when trying to compile a basic Delphi project using tcxGrid
When compiling a project in Delphi 12 Community using tcxGrid from DevExpress 12 Trial, the following error occurs:
[dcc32 Fatal Error] Unit4.pas(16): E2225 Never-build package 'cxLibraryRS29' must be ...
2
votes
1
answer
190
views
How to make a custom VCL control detect when another VCL control has moved?
What I am trying to do is write a custom TLabel that is coupled to another control, for example a TDBEdit, and the label will always position itself relative to the control's position, and when this ...
0
votes
1
answer
185
views
In Delphi TPrintDialog, can the printer name and paper size be programmatically set?
Using Delphi VCL.
When the user starts a print job, I display TPrintDialog.
Ideally, the print dialog would show the name of the printer, paper size and orientation that the user last used (which I ...
3
votes
1
answer
148
views
Is there really a difference between Image->Picture->Assign(Bitmap) and Image->Picture->Bitmap = Bitmap?
I am struggling to understand if there is really a difference between both statements:
Image->Picture->Bitmap = bitmap; // bitmap is a TBitmap object
Image->Picture->Assign(bitmap);
The ...
1
vote
3
answers
199
views
Winapi MessageBox (Delphi) : How to Determine the Owner Handle When Parent is Unknown to Ensure Proper Modal Order
I’m working on a custom message dialog function as custom library functions to reuse it in Delphi across all project groups and I’m facing an issue with maintaining the modal order of forms when the ...