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

Can I step into the VCL (Pascal) code while debugging a C++ app?

I have a Delphi app that we're migrating to C++. One thing I often do while debugging my Delphi code is step into the VCL itself to understand exactly what's going on, to track some bugs. Is this possible in C++Builder? Suppose I am in C++Builder…
C. Smith
  • 149
  • 5
12
votes
2 answers

"specific to a platform" warning in Delphi 6 on Windows 7

We have some legacy code that compiles in Delphi 6. There are plans to rewrite it in a more current IDE, but they are a ways out. When we compile it we get several warnings like this: FPrecision is specific to a platform. This is in VCL\DB.pas. …
Vaccano
  • 78,325
  • 149
  • 468
  • 850
12
votes
9 answers

Delphi Change main form while application is running

I have this problem. When I hide my main form, then the taskbar icon of my application is also hidden. I saw a new question about this problem as well and the answers didn't really help. They suggested to minimize it, but I do not want to minimize…
Shaun Roselt
  • 1,650
  • 5
  • 18
  • 44
12
votes
1 answer

Why doesn't my custom component update when I change properties?

I have created a component, TGridPaintBox, based on TPaintBox. It is basically a paintbox with added "grid functionality". It's not a data grid. More like a chess board component. In the object explorer I can set certain properties. Most importantly…
Svein Bringsli
  • 5,640
  • 7
  • 41
  • 73
11
votes
1 answer

Can a TEdit show color emoji?

I'd like to see emojis in color in a TEdit or TMemo control using VCL and Delphi 10+. Can it be done? Text entered: ‍‍‍‍ What I see: What I'd like to see:
David Dubois
  • 3,842
  • 3
  • 18
  • 36
11
votes
3 answers

Porting Borland C++ Builder to Qt

I have to port a project from Borland C++ Builder 5.0 under Windows XP to Qt 4.7.1 using g++ under Windows 7/mingw. The libraries and command-line utilities are done, and now I have to tackle the GUI applications, which use Borland VCL. Can anybody…
TonyK
  • 16,761
  • 4
  • 37
  • 72
11
votes
5 answers

Form.Release + NIL

if Form.Release is called after using the form, it will free all related memory but not set the form variable to nil. if not assigned (Form1) then begin Application.CreateForm(Tform1, Form1); try // Do something finally …
Holgerwa
  • 3,430
  • 9
  • 42
  • 50
11
votes
1 answer

Remove Item from ListBox?

Is there any way to remove item from listbox based on it's name but not index value? I would like to remove item named "Mouse" (which index # changes all the time).
Tom
  • 331
  • 2
  • 4
  • 13
11
votes
1 answer

How can I make a form that is not disabled when another form is shown modally?

I have a utility dialog (non-modal and stay-on-top) that should be accessible at all times when using the application (think of a dialog that can be used to take notes while working with the application) even if a modal dialog is displayed. The rest…
jpfollenius
  • 16,456
  • 10
  • 90
  • 156
11
votes
5 answers

How to set two radiobuttons in one group and two in another group?

I have total 4 radiobuttons on my form,I want to set the first two buttons in one group and the second two in another group so that I can check one from the first group and one from the second group. Right now,if I check one from the first group,the…
Ivan Prodanov
  • 34,634
  • 78
  • 176
  • 248
10
votes
1 answer

How can I remove the margin between a page control and its tab sheets?

I noticed that the Left property for TTabSheet in the TPageControl is always 4. Because of this there is always at least a 4-pixel margin between the TPageControl border and controls within the TTabSheet. I want to set this margin to 0 (at least for…
CITBL
  • 1,587
  • 3
  • 21
  • 36
10
votes
1 answer

Disabling Windows 10 Game Bar for specific application

In some conditions the Windows 10's game bar opens up with my application (made with Delphi, VCL). Thats not a game and i don't directly use DirectX or OpenGL, but it opens up. To be specific, when i reduce to tray my app and a popup is opened the…
HypeZ
  • 4,017
  • 3
  • 19
  • 34
10
votes
4 answers

How can I check if my application has focus?

What I want to do is check if my application has focus because if it is not then I will popup an Alert Window just over the Notification Area to display some message to the end user.
fossilz
  • 337
  • 4
  • 17
10
votes
1 answer

How to set form height larger than 1096 pixels?

I am using C++ Builder XE7 and having a strange problem. I need a form height to be about 1500 pixels. The problem is that object inspector does not allow me to specify value that is larger then 1096 pixels. If I set any larger value it is…
Tracer
  • 2,544
  • 2
  • 23
  • 58
10
votes
1 answer

Drawing Text At An Angle

I am writing a VCL/Delphi Application, and I need to draw text onto a Canvas object. I am having troubles though because I need the text to be at a variable size and angle. Is there any easy way of doing this? The TextOut method only takes arguments…
Ben313
  • 1,662
  • 3
  • 20
  • 32