Questions tagged [vcl]

This tag is used for questions regarding the Visual Component Library used in Borland/CodeGear/Embarcadero Delphi and C++Builder products as well as Python GUI apps. Do not confuse this with the Varnish Configuration Language (VCL). Use the "varnish-vcl" tag for questions related to that product.

Visual Component Library is a visual component-based object-oriented framework tightly integrated with Delphi and C++Builder. It's also available for Python as a GUI framework.

VCL components cover visual and non-visual components like:

  • Windows common controls
  • Database access components
  • Internet connection components

The component approach allows programmers to extend easily the VCL.

Resources:

1590 questions
8
votes
3 answers

How to change caption font color on TCheckBox, TRadioButton, TGroupBox?

I don't know what my problem is, but I cannot set the font color in DEx2 for controls like TCheckBox, TRadioButton, TGroubBox, and TRadioGroup. It doesn't matter if I do it in the IDE or programmatically. I have set my form color to clBlack and…
skippix
  • 481
  • 1
  • 6
  • 14
8
votes
4 answers

What base class to use when developing Delphi VCL component?

If I want to replace a VCL component TXxx should I base my component on TXxx or TCustomXxx? I am looking to make drop-in replacements for various text-editing components (TEdit, TMemo, etc.) to have WM_PASTE handlers to sanitize inputs to a back-end…
wades
  • 927
  • 9
  • 24
8
votes
1 answer

ListBox long items hints

There's a ListBox with some long items. These long items are getting beyond the right edge of the ListBox and here comes an idea to show hints for such items when the mouse is over them. I've found an example: (from…
Vlad
  • 337
  • 1
  • 7
  • 12
8
votes
1 answer

Custom component and tab order

I have a custom component (inheriting from TCustomPanel) that consists of two other components (let's say two edits). How do I get the tab order right when using the component? In the tab order designer I can only access the component itself which…
jpfollenius
  • 16,456
  • 10
  • 90
  • 156
7
votes
4 answers

Can Delphi VCL project be compiled to a browser plugin?

I have a Delphi VCL application which I'm using to show some pictures and I would like to know if there is any possibility to transform it into a browser plugin (like firefox, google chrome etc ) in order to load it remotely, like a java applet.
7
votes
1 answer

Is there a data-aware tab control available?

Data-aware controls can be linked to datasets to display data contained in fields in the current row, or in some cases, data from one or more columns along multiple rows. And the TTabControl lets you apply the same set of controls to different sets…
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
7
votes
4 answers

Fuss over Runtime and Design Time packages in Delphi

I have seen that most of the components (VCLs) in Delphi are split in two parts. 1) DesignTime Package 2) RunTime Package Why all this fuss. What difference does it make if both RunTime and DesignTime packages are united into one single Package? I…
Yogi Yang 007
  • 5,147
  • 10
  • 56
  • 77
7
votes
0 answers

Update of a VCL TClientDataSet (detail set) when its master data set is empty

I have a master TClientDataSet, which is also a detail dataset. This dataset is named MasterDetail1. Another dataset, DetailSet1, is a detailset of the MasterDetail1. The query for DetailSet1 is SELECT * FROM readoutprobe_containers WHERE id =…
Totte Karlsson
  • 1,261
  • 1
  • 20
  • 55
7
votes
0 answers

Is there a (Windows) limit on number of characters in a Label Caption?

I noticed that in a (Delphi 10.3.3 32-bit VCL app on Windows 10 64-bit) application that the caption of a label would not display if the string was "really" long. Further testing indicates that it is not restricted to a TLabel. TStaticText also…
TomB
  • 750
  • 4
  • 17
7
votes
2 answers

What is the right way to destroy a form in Delphi?

I only kept main form in auto-create forms and removed the rest. Basically I call those forms with TMyForm.Create(Self).Show; But when my works are done with this form, how can I release the resources this form used with best way? I looked up…
Tak Kovac
  • 83
  • 6
7
votes
1 answer

RTL150.BPL not found

i have this problem: i compile and run application and all work in mine computer. When i try to run same application in other computer, i have error about rtl150.bpl not found. I have searched on internet and all response that i have had tell me to…
Danny
  • 141
  • 2
  • 8
7
votes
3 answers

How to change behaviour of TDBNavigator component?

I would like to change the behaviour of the insert button on the standard DBNavigator bar, from a dataset insert to append. I could trap the button click in the BeforeAction event, do the append, etc; and then in the OnClick event abort the original…
PhilW
  • 457
  • 6
  • 15
7
votes
1 answer

What is TParams.ParamRef used for?

Unit db.pas contains implementation of TParam class, which represents a parameter in database query. While testing queries with lots of params I noticed that function TParam.ParamRef: TParam takes a lot of time, since it calls ParamByName which does…
user219760
7
votes
3 answers

Creating a new component by combining two controls (TEdit and TTrackBar) in Delphi VCL

I am developing a Delphi 10.1 VCL application for Windows. For integer or float input I need a number input field which is connected with a slider. When the user changes the number in the input field the slider position changes accordingly. When the…
user3384674
  • 759
  • 8
  • 28
7
votes
3 answers

how to store data on Firebase - Delphi XE 10

What is the best way to connect to Google´s Firebase DBaaS from Embarcadero Delphi XE 10 ? I am not sure how to do it from AnyDAC. Or if exists a component out there (i coundnt find one on search) Any help? thank you
diego
  • 155
  • 2
  • 8