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
4 answers

Delphi: Draw a Arc in high resolution

I need develop a circular progress bar in delphi 2007, I can't use third-party components (company policy). I'm using a Canvas, drawing an arc, that's works fine, but the image is at a very low resolution. It's possible to improve the resolution in…
Confundir
  • 216
  • 2
  • 7
5
votes
1 answer

How to detect WindowState changes?

How can I detect WindowState changes for a TCustomForm descendant? I would like to be notified at any time the WindowState property is set with a different value. I've checked if there was an event or a virtual method inside the setter but I didn't…
Fabrizio
  • 7,603
  • 6
  • 44
  • 104
5
votes
2 answers

Delphi thread not receiving messages

I am developing an application with multithreading (RAD Studio XE5). At the start of the application I create a single thread that will live as long as the main form does. I am able to dispatch messages from the thread to any form that has been…
tsmr
  • 198
  • 11
5
votes
1 answer

Wrong icon used as default icon after loading icons from a RES file

I am trying to create a custom component that shows an icon when the mouse is moved over it. I am loading the icons like this: UNIT Test; constructor TTestPath.Create(aOwner: TComponent); VAR myIcon: TIcon; begin inherited Create(aOwner); …
Gabriel
  • 20,797
  • 27
  • 159
  • 293
5
votes
0 answers

how to find url redirects to another url while downloading an application using TDownLoadURL?

In some cases, a url redirects to another url while downloading an application. This we can easily identify while hitting the url in browser. But how to make this possible in code to download the application from the redirected URL using…
5
votes
2 answers

Long Touch with Delphi VCL on Windows Tablet

I've created a TCustomControl derived class for a VCL application running on a Windows 8.1 tablet. I'm using the OnMouseDown / OnMouseUp events even though this is obviously touch based. What I'd like to do is detect a long press - i.e. touch down…
5
votes
2 answers

How to show placeholder in TEdit

Is there any way to add a placeholder text to an edit? My only idea is to always manually set the color and the text of the given edit in its OnChange event, but it seems to be a bit tedious to me. Any other suggestions?
Oh nooo
  • 478
  • 5
  • 19
5
votes
2 answers

Is there a selectable label control?

I'd like a selectable label control, like the one in the screenshot. It could be done with a borderless TEdit, but I was wondering if there is another way that would work with gradient background? example…
user219760
5
votes
0 answers

How to force a delphi form to be in foreground in windows 10 tablet mode

This is the setting: I have two views that are implemented within two different vcl forms. To one of those I applied a style to make it look like a touch optimized metro app. Those forms can be switched according to an application's setting. (show…
Florian Grummel
  • 332
  • 3
  • 14
5
votes
3 answers

Preferred way to keep control centered on resize

What is your preferred way of keeping controls centered on its parent when the parent change width or height?
Vegar
  • 12,828
  • 16
  • 85
  • 151
5
votes
1 answer

How can I hide the header of the PageControl TabSheets in C++ Builder

I wonder how can I hide the headers of the TabSheets in PageControl component. I want make a creator e.g to build your champion where you can choose some stuff on the pages. TabSheets will be change every 10 s by Timer. In Google I can find only how…
Lukas
  • 69
  • 1
  • 10
5
votes
2 answers

TPanel does not AutoSize when containing a TPanel

I have a panel inside another: The inner panel is aligned alTop: And the outer panel is set to AutoSize=true: And everything sizes. If i changes the height of the inner panel at design time, the outer panel auto sizes to accommodate it: And now…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
5
votes
4 answers

Delphi element alignment - center

There seems to be align property that works really well, but is is possible to align element so all elements on panel would be aligned to center all on bottom of each other if they all have less than size of container? Something like…
Flash Thunder
  • 11,672
  • 8
  • 47
  • 91
5
votes
2 answers

How does FreeNotification work?

Currently, I am trying to understand Delphi's VCL, specifically, the notification mechanism (which is a great mechanism in my point of view). When I was studying on this subject, I remembered of the TLabeledEdit, of course I have been using it for…
EProgrammerNotFound
  • 2,403
  • 4
  • 28
  • 59
5
votes
3 answers

C++ - How to get the user folder?

I'm having a little problem with my program... I have to create a file with the application data, but I don't know how to access the %USER% or %APPDATA% directories... I've tried to use the application folder, but if I install the application in…
mauroaraujo
  • 332
  • 1
  • 10
  • 23