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

VCL alternative to IStorage

To preface I am using Borland C++ and the VCL. I need some sort of structured storage object which can be saved to disk as a single file and can contain multiple named blobs of binary data which I can programatically enumerate, access and…
QAZ
  • 4,870
  • 6
  • 36
  • 50
0
votes
0 answers

TBrush bitmap alignment

I have a TPaintBox control and have assigned the TPaintBox->Canvas->Brush->Bitmap to a prepared TBitmap with a grid pattern. The TPaintBox is client aligned inside it's parent (Form). When I manually call TPaintBox->Invalidate() to redraw the…
Max Kielland
  • 5,627
  • 9
  • 60
  • 95
0
votes
1 answer

TcxGridDBBandedTableView cell selection issues with Devexpress VCL 13.1.2

I am using Devexpress VCL 13.1.2. I have a table view like following myView : TcxGridDBBandedTableView When I click on the first cell (TcxGridDBBandedColumn) of this table view (TcxGridDBBandedTableView), it gets selected (background becomes blue).…
user1556433
0
votes
1 answer

varnish cookies on uri + domain

i have varnish installed that serve my cached content on my sites i have wordpress and added the rule to strip incoming and outgoing cookies if they do not belong to wp-admin or wp-login sub vcl_recv { if (!(req.url ~ "wp-(login|admin)")) { …
popeating
  • 386
  • 1
  • 2
  • 16
0
votes
1 answer

DBGrid->OnColExit() focus fails

void __fastcall TUsers::DBGColExit(TObject *Sender) { Ado->ExecSQL(); AQ4->Close();AQ4->Open(); } after changing content of Table for AQ4 (Ado Query) and reload AQ4 DBG (DBGrid) reloads content too. but I'm still on not Exit from my Col…
cnd
  • 32,616
  • 62
  • 183
  • 313
0
votes
1 answer

Varnish : VCL ~ with req value

I would like to avoid cache on same page depending of a cookie value (my user have profile with an URL like /firstname-lastname and can visit profile of other users). In my cookies I store the "firstname-lastname" value, and try to make a test on…
Bacteries
  • 593
  • 4
  • 13
0
votes
1 answer

What is the default font of tpopumenu in delphi?

I'm doing a program in Rad Studio XE2 which minimizes a trayicon. I have found that the font of TPopMenu, and the ballon of TTrayicon depending on the operating system is completely different (I have tried on windows 7 and windows xp). I thought it…
elcharlie
  • 511
  • 8
  • 25
0
votes
1 answer

How to call the default handler from within an event handler

I have a TStatusbar with 4 panels and one of them set in OwnerDraw style. In the onDrawPanel() event handler, I would like the TStatusbar to use the default paint method before I add some custom drawing on top of it. Is there a way I can call the…
Max Kielland
  • 5,627
  • 9
  • 60
  • 95
0
votes
1 answer

c++ builder, label.caption, std::string to unicode conversion

Just need to set the lbl.caption (inside a loop) but the problem is bigger than i thought. I've tried even with vector of wstrings but there is no such thing. I've read some pages, tried some functions like WideString(), UnicodeString(), i know i…
Krzysztof Szynter
  • 835
  • 4
  • 14
  • 24
0
votes
2 answers

how to write a function Click() for dynamic created button?

Trying to write a simple VCL program for educating purposes (dynamicly created forms, controls etc). Have such a sample code: void __fastcall TForm1::Button1Click(TObject *Sender) { TForm* formQuiz = new TForm(this); formQuiz->BorderIcons =…
Krzysztof Szynter
  • 835
  • 4
  • 14
  • 24
0
votes
1 answer

RichEdit get line from pixel position

If I click inside a TRichEdit control, how can I get the Line index (I clicked on) from the mouse client coordinates? In other words, how do I convert a client coordinate to a Line Index? ***EDIT I'm actually not clicking inside the TRichEdit…
Max Kielland
  • 5,627
  • 9
  • 60
  • 95
0
votes
3 answers

Set Back Color On DateTime Picker

How can I make Back Color feature work on the TDateTimePicker. I would just like to set the backbround color of the control.
Arch Brooks
  • 183
  • 1
  • 3
  • 19
0
votes
1 answer

Resource leaks when using a VCL (C++Builder) DLL from .NET

I have a DLL that's written in C++Builder (2006), and I'm invoking a single function in the DLL from a .NET application. The problem is, when I close the .NET application (and the DLL gets detached from it) I get a CodeGuard error saying that it…
Dmitry Brant
  • 7,612
  • 2
  • 29
  • 47
0
votes
0 answers

Delphi XE4: the form size reduced

I created the new program and testing it on the different OS - windows 7 and 8 (64-bit). In windows 8 (64-bit) I see the size of a form is normal. In windows 7 (64-bit) I see the size of a form is very reduced, especially on width. I found the solve…
0
votes
0 answers

Touch and drag does not fire mouse up/down events (Delphi)

In my application I have used the OnMouseDown and OnMouseUp to create a windows desktop style selection box. OnMouseDown I create a semi transparent blue window and get rid of it in the OnMouseUp. The result is a nice transparent box to indicate the…
Martin
  • 815
  • 8
  • 21