Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
217 views

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 ...
Shaun Roselt's user avatar
  • 4,464
-2 votes
1 answer
121 views

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 ...
Shaun Roselt's user avatar
  • 4,464
0 votes
1 answer
94 views

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 ...
Shaun Roselt's user avatar
  • 4,464
1 vote
1 answer
174 views

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 ...
Franz's user avatar
  • 2,085
-1 votes
0 answers
55 views

I use C++Builder 11.3. I want to compile a project that was written for the 'classic' Borland compiler. I want to compile it with the modern Clang compiler. I removed most errors, but I still get ...
Jan Mohyla's user avatar
0 votes
1 answer
47 views

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, ...
manlio's user avatar
  • 19.2k
1 vote
0 answers
101 views

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 ...
StinkyPete's user avatar
2 votes
1 answer
112 views

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 ...
user31362432's user avatar
0 votes
1 answer
181 views

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&...
Ian Boyd's user avatar
  • 259k
0 votes
1 answer
202 views

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" ...
user31362432's user avatar
0 votes
1 answer
127 views

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: '...
user31362432's user avatar
4 votes
1 answer
193 views

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 ...
TomR's user avatar
  • 3,364
2 votes
1 answer
98 views

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 ...
Martin Nijhoff's user avatar
2 votes
1 answer
168 views

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 ...
Steve Sneed's user avatar
1 vote
2 answers
106 views

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::...
Martin Nijhoff's user avatar
3 votes
3 answers
347 views

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 ...
Shaun Roselt's user avatar
  • 4,464
1 vote
1 answer
123 views

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 ...
Łukasz Waluś's user avatar
0 votes
1 answer
147 views

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 ...
user29880284's user avatar
0 votes
0 answers
42 views

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 ...
alice's user avatar
  • 67
2 votes
1 answer
200 views

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 ...
GuidoG's user avatar
  • 12.3k
0 votes
1 answer
199 views

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 ...
user2580203's user avatar
3 votes
1 answer
150 views

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 ...
Mauro's user avatar
  • 73
1 vote
3 answers
201 views

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 ...
user5005768-hd's user avatar
1 vote
0 answers
68 views

I'm working with a Delphi codebase where I need to extract the file path of a linked file in an OLE container. The container is saved on disk, and is openable with the methods TOleContainer....
D D's user avatar
  • 49
2 votes
1 answer
298 views

I need to print to POS PRINTER (Epson TM 30) on a roll paper 80mm. Every time i open a print dialog i have to change the paper size from A4 to paper roll 80 mm. Printer Setting: In order to print ...
Daniele's user avatar
  • 107
0 votes
1 answer
78 views

I'm using a TVirtualImage in a TControlList connected to a TImageCollection. I would like to be able to load an image from a TOpenPictureDialog and replace an image in the Collection. For example, ...
JKofsky's user avatar
  • 177
1 vote
1 answer
65 views

If I call MainForm->ControlList1->Invalidate() from a TIdUDPServer::>OnUDPRead event, is it thread safe, or do I still need to use TThread::Synchronize() or TThread::Queue()?
JKofsky's user avatar
  • 177
0 votes
0 answers
126 views

dfm : https://pastebin.com/KqCRLn2f Code : unit Unit2; interface uses System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls; type ...
Arcus's user avatar
  • 59
1 vote
0 answers
90 views

I have a TPopupMenu that acts as a tray menu (it is linked to a TTrayIcon). The .BiDiMode of this menu is set to bdLeftToRight, and this is how I want it for almost all its items. But I have one ...
Leonard's user avatar
  • 446
0 votes
1 answer
106 views

Using C++ Builder 11.1.5. This is for a Windows VCL 64-bit application. I am trying to write a key from the registry (and all subkeys and values) to a backup file so it can be restored at a later time....
Andrew Leggett's user avatar
1 vote
0 answers
138 views

I need to increase the font size of my menus (TMainMenu, TPopupMenu) and I cannot figure out how to do it correctly. I thought I don't need to draw the menu items completely, so I just assigned ...
Petro K's user avatar
  • 332
1 vote
0 answers
189 views

I made a simple VCL form called TFormBase, and set some properties like for example WindowState = wsMaximized. The form is also in a package that registers it, so my own properties are visible in the ...
GuidoG's user avatar
  • 12.3k
4 votes
1 answer
189 views

For my internship, I'm developing a simple tcl Windows-only app using C++Builder 12. The app is used to do some simple CRUD with an interface. I'm using SQLite as a database, and also FireDAC, ...
Alan Finiti's user avatar
1 vote
2 answers
140 views

I'm working with Delphi 12. I want to create a visual component derived from TPanel with several components grouped together. One piece is to create a PageControl with 2 (at the moment) tabsheets, and ...
Popa Ovidiu-Razvan's user avatar
3 votes
1 answer
191 views

The property ScrollBars of a TStringGrid specifies whether the grid includes horizontal and vertical scroll bars. These are visible if ScrollBars = ssBoth, and when all the cells do not fit in the ...
Fred62's user avatar
  • 61
0 votes
0 answers
33 views

Loaded a style from file, but when assigning ImageIndex to a MenuItem the text disappears, everything else seems fine. Not sure if there is additional properties for the ImageList to make this work. ...
Cubitte's user avatar
  • 21
0 votes
1 answer
157 views

When I create simple project in C++ Builder and add component on a From from my Package - EhLib I get next compilation error. [bcc32c Error] Vcl.Buttons.hpp(66): reference to 'Vcl' is ambiguous Vcl....
DmitryB's user avatar
  • 545
0 votes
1 answer
109 views

I am having trouble freeing the memory allocated by _wcsdup() to create a TObject pointer for a TComboBox. I thought this memory was freed automatically when the TComboBox or the Parent TForm was ...
WorldTalk's user avatar
1 vote
0 answers
118 views

I have an old project using QuickReport in Delphi 10 Seattle. I based the entire solution on the ClosePreview() call. I tried changing the QRPrinter object, Printer object, or TQuickRep(QRUserPreview....
szpliter's user avatar
  • 107
1 vote
2 answers
239 views

In RAD Studio 12.2 C++Builder, I created a new component called TGroupBoxE derived from TGroupBox. It inherited all of the graphic properties of TGroupBox. I want the new component to not use the ...
Lubo's user avatar
  • 11
1 vote
1 answer
182 views

How to replace the "AaBb..." sample text? Why is the sample text not shown by default when executing TFontDialog? (it seems to show the text only if I click on a font size, even if I set the ...
kgz's user avatar
  • 687
0 votes
0 answers
82 views

I'm trying to use TCustomTransparentControl, but it is not transparent. When creating one with : TTransparentControl = class(TCustomTransparentControl) protected procedure Paint; override; ...
Arcus's user avatar
  • 59
1 vote
1 answer
58 views

When I move focus with the Tab key to a VCL TComboBox control containing text in the Text field, the complete text is always displayed as selected. How can this be changed so that the selection can be ...
Nemox's user avatar
  • 13
4 votes
1 answer
89 views

I am trying to use the following code to get a list of subkeys in the registry. GetKeyNames takes a TString object. Upon return, the TStringList object has a count of 3 which is the correct count. ...
Kevin's user avatar
  • 52
0 votes
1 answer
106 views

I want to color a TButton control in C++Builder. I am trying to follow the information I found that suggests using SetWindowLong() to enable the BS_OWNERDRAW style for my TButton control, then catch ...
Kevin's user avatar
  • 52
0 votes
1 answer
136 views

I can't start a service that I created in C++Builder using the TService class. I wrote a service that does nothing and I want to start it, but the service does not start. I register the service and ...
Jacek's user avatar
  • 63
1 vote
2 answers
825 views

I have multiple TButtons on a TPageControl. The first 3 work, when I double-click on them, the IDE takes me to their procedure (ie procedure TForm3.btn1q1Click(Sender: TObject);) but it gives me this ...
PurpleTurtle PLAYZ's user avatar
1 vote
0 answers
217 views

I am using Delphi's TMediaPlayer to play .WAV files. It works on some files. However, when using it to play one .WAV files, in the following command: MediaPlayer.FileName := OpenDialog.FileName; ...
alancc's user avatar
  • 869
0 votes
1 answer
97 views

I'm trying to compile a part of the firefox source code using C++ builder. Specifically the SMTC integration. This requires WinAPI.Media.hpp. But almost all WindowsRT units require Winapi.Perception....
Codrut's user avatar
  • 362
1 vote
0 answers
124 views

For my VCL StringGrid component, I have successfully implemented the whole DragAndDrop operation for swapping the rows. The unique problem that remains is that when I click on the right mouse button ...
Mauro's user avatar
  • 73

1
2 3 4 5
35