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

Add a property on TWinControl Class

I want to add a published property into TWinControl. Is there someway to do this without the necessity of recompiling the base source code ? If not, some way to recompile the base source code without too much troubles ? Tks in advice... EDIT 'CAUSE…
Rodrigo Farias Rezino
  • 2,687
  • 3
  • 33
  • 60
5
votes
3 answers

Running VCL in a separate thread

I now have a rather rare situation. I have an application which directly interacts with Windows' message queue. This application also runs external Lua scripts with LuaJIT. I wanted to have a debugging facility for these scripts, so I've created a…
Delfigamer
  • 63
  • 6
5
votes
2 answers

Delphi 2010 Action Manager & Main Menu Bar

I'm trying to use the Action Manager and Action Main Menu Bar in Delphi 2010 an I have no idea how to make this work. I've tried looking at the examples that come with Delphi 2010 and I can't seem to figure this out. I've tried playing around with…
5
votes
2 answers

How Do I Add A TLabel To The Menu Bar in Delphi?

I use Beyond Compare (a great program), and was very impressed when it displayed a "New Version Available" label on its Menu Bar. I clicked on it, up popped an install new version box, it installed, the program restarted itself and there was the new…
lkessler
  • 19,819
  • 36
  • 132
  • 203
5
votes
1 answer

VCL component Opacity/transparence

Is it possible to make e.g 20% transparent TMemo or other vcl component? like TButton or TEdit? While googling for solution I've found this: From Here, then I thought, if I draw image on form (OnPaint) then set AlphaBlend ON, I could achieve this…
user2200585
  • 283
  • 5
  • 15
5
votes
1 answer

Sending data to USB printer in Delphi

How do I send text commands to a printer connected in the USB port using Delphi? I have a Zebra TLP2844 printer and want to program a direct communication with it.
Ricardo Acras
  • 35,784
  • 16
  • 71
  • 112
5
votes
1 answer

How do I allow dragging files for specific control(s) in Delphi

I would like to accept files as soon as someone drops a file to a specific control (e.g. TMemo). I started with this example: http://delphi.about.com/od/windowsshellapi/a/accept-filedrop.htm and modified it like this: procedure…
Ben
  • 3,380
  • 2
  • 44
  • 98
5
votes
1 answer

Delphi: Styled TMainMenu and TToolBar in TCoolBar

I'm attempting to create an application menu and toolbar in Delphi XE3 that looks like the following (from a program I have): I'm able to replicate a portion of this look by doing the following: Create a new VCL Forms application Add a TMainMenu…
spurgeon
  • 1,082
  • 11
  • 34
5
votes
2 answers

How can I stop my application showing on the taskbar?

My application has an option for the users to run it only in the system tray, and not in the task bar. This worked fine when my application was built by Delphi 6. After switching to Delphi XE2 it no longer functions. I've messed with it some, and…
Paul
  • 5,700
  • 5
  • 43
  • 67
5
votes
9 answers

Are there any "mind mapping" components for Delphi? (native VCL preferably)

I'm looking for a pre-written component (w/source) for a Delphi project that I'm working on, to generate mind-maps / concept-maps similar to…
C
5
votes
1 answer

How can I create alpha blended icon/cursor (indirect) from the TBitmap instance of 32 bpp w/o making an temporary DIB section?

According to MS KB entry, there is a quirk in CreateIconIndirect which recognizes HBITMAPs been created with BITMAPV5HEADER passed to CreateDIBSection (and BGRA channel layout). However, TBitmap instances with (PixelFormat = pf32bit) and…
OnTheFly
  • 2,059
  • 5
  • 26
  • 61
5
votes
1 answer

How to implement a user definable interactive map in Delphi 2010?

I'd like to have an interactive floor map (so they're not huge) in my application. The maps will be different for every user, but contain similar elements which only differ by quantity and location. The application will show the map, identify…
Thijs van Dien
  • 6,516
  • 1
  • 29
  • 48
5
votes
1 answer

TCppWebBrowser vs TWebBrowser

What is the difference between TCppWebBrowser and TWebBrowser components in C++Builder 2010 and above? There is no mention of TCppWebBrowser in the help, where TWebBrowser has regular help section. So, which one should I use and is there any real…
riot_starter
  • 1,218
  • 15
  • 28
5
votes
4 answers

Messagebox detect YesNoCancel button

I am using a VCL Forms application in C++ Builder. can I please have some help in some code to display a messagebox with YesNoCancel buttons and then detect if the yes, the no or the cancel button is pressed. Here is my code: if(MessageBox(NULL,…
user1690531
  • 231
  • 1
  • 6
  • 17
5
votes
1 answer

How to 'close on external click' for a TPanel (like TCombo) in Delphi

I want to mimic the TComBo list function which is closed when the user click 'outside' the list, but for another component (a TPanel). In Delphi XE2. Any Idea ?
philnext
  • 3,242
  • 5
  • 39
  • 62