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
5
votes
1 answer

Using TOwnedCollection descendant in Delphi

I'm trying to create a custom component with a collection property. However if I try to open the collection editor during design time by clicking "..." button in object inspector, nothing happens. What I am missing? Here's my TCollection…
Harriv
  • 6,029
  • 6
  • 44
  • 76
5
votes
1 answer

TDBGrid status bar for column aggregate

Got a grid with some numeric columns and it's need to implement for each column an aggregate (sum or count) and display it under the corresponding column. I know that some suites (DevExpress or other) had already implemented "by default". But there…
DreadAngel
  • 772
  • 11
  • 30
5
votes
1 answer

Delphi XE2 VCL styles, changing window Icon doesn't update on the caption bar until RecreateWnd

Another weird glitch with VCL styles: Changing a form's Icon updates only its taskbar button, the Icon in the caption doesn't update unless you use RecreateWnd. (when using VCL styles) ImageList3.GetIcon(0,Form1.Icon); Is there a way to fix it…
hikari
  • 3,393
  • 1
  • 33
  • 72
4
votes
2 answers

Delphi XE2 VCL styles, remove a style or disable a class skinning from a TLabel

Using XE2 VCL styles, I'd like to disable the skinning for TLabel (or property sfTextLabelNormal) I've tried all kind of solutions from other questions, like using Engine.UnRegisterStyleHook, but it has no effect.
hikari
  • 3,393
  • 1
  • 33
  • 72
4
votes
1 answer

Regular Expression library for Borland Builder 6.0

Is anyone using Boost for regular expressions in BCB6, or can recommend anything else? I've downloaded the latest boost ZIP file a few times, but I can't get it to unzip yet (my PC is probably not in the best state right now). It is a pretty huge…
eselk
  • 6,764
  • 7
  • 60
  • 93
4
votes
4 answers

How do i custom draw of TEdit control text?

I'd like to draw a piece of TEdit.Text using Font.Color different from the default. Are there any examples how to do that? I'm attempting to do something like this: NOTE: what this screenshot pictures is merely a hairy draft, but it convinces me…
OnTheFly
  • 2,059
  • 5
  • 26
  • 61
4
votes
2 answers

How should I do a date and time range selection in my Delphi application?

I want the user to be able to specify something like "Tuesday , from 10am till 11am". Can I do this with one complex control, or would I be better off with 3 separate simpler controls, such as combo boxes, one for day and one each for start/stop…
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
4
votes
2 answers

What happened to TBitBtn and TButton inheritance chain?

I've recently began to upgrade my RAD Studio 2007 project to RAD Studio 2009. One thing I noticed is when seemingly simple code all of a sudden failed to compile. Example Code: class CButtonPopupMenu { // Snip public: void Init( TButton*…
Scott Saad
  • 17,962
  • 11
  • 63
  • 84
4
votes
1 answer

Delphi XE2 New Service - Why does it include these VCL units?

I'm a little puzzled as to why, when you create a new service application in Delphi XE2, does it include these 3 visual component units? Vcl.Controls Vcl.Dialogs Vcl.Graphics As far as I know, there's nothing in these units which a Service would…
Jerry Dodge
  • 26,858
  • 31
  • 155
  • 327
4
votes
1 answer

How to align with margin on Delphi 7?

I hope I'm not asking a question that was answered before. I searched. I need to do something similar to what the article below explains for Delphi 2006+. Can it be done on Delphi 7 without using a Panel or…
akaya
  • 110
  • 4
  • 9
4
votes
2 answers

How could a Delphi 6 TWinControl descendant's WndProc() execute sometimes off the main VCL thread?

I have a Delphi 6 application that is heavily multithreaded. I have a component I created that descends from TWinControl. When I first built it, I used a hidden window and it's WndProc to handle messages, allocated with AllocateHwnd(). Recently I…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
4
votes
1 answer

How to perform an image stream preview to a Delphi 6 frame or form from a background thread efficiently?

I have a Delphi 6 application that receives and processes an image stream from an external camera. I have the code on a background thread since it is CPU heavy and I don't want it interfering with with the user interface code that runs on the main…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
4
votes
1 answer

C++ Builder XE not linking all runtime DLLs

When I compile my project with the option to exclude runtime packages (to do a static library linking) everything goes fine. But when I run my application on a C++ Builder "virgin" (no packages installed) it won't start and shows the following…
Max Kielland
  • 5,627
  • 9
  • 60
  • 95
4
votes
5 answers

Delphi 6 TListBox OnMeasureItem() and OnDrawItem() never called for lbOwnerDrawVariable() list box

I have a Delphi 6 app with a TListBox control set to lbOwnerDrawVariable. At run-time I add a single string to the list box. I have event handlers for OnMeasureItem() and OnDrawItem() and I set breakpoints on the very first line of code in each…
Robert Oschler
  • 14,153
  • 18
  • 94
  • 227
4
votes
6 answers

A good (and free) VCL GUI alternative

I've got a project with a rather messy VCL codebase built on Borland C++ Builder 6. I intend to rewrite most parts of it since it's hardly maintainable in it's current state. I'm looking for a good and free alternative to VCL. It is a Windows-only…
Saulius Žemaitaitis
  • 2,956
  • 3
  • 29
  • 36