tpanel is a VCL control implementing a generic panel control.It is defined in ExtCtrls.pas unit.
Questions tagged [tpanel]
45 questions
2
votes
1 answer
Placing existing VCL controls on a TPanel component
As we all know, TPanel is a container for other visual components (TLabel, TEdit etc).
However, it seems that we can place only new components (from the
component palette) onto an existing TPanel and the VCL framework will then automatically make…

dsp_user
- 2,061
- 2
- 16
- 23
2
votes
1 answer
how to create a TCustomControl that behaves like Tpanel?
how do I create a TCustomControl that will behave like Tpanel? eg MyCustomComponent, that I can drop components in like labels, images etc.

XBasic3000
- 3,418
- 5
- 46
- 91
2
votes
2 answers
Object container based on TGraphicControl
I'm using TScrollBox to make custom list contains many controls (Tlabels,Timages,Tshapes)
the problem is when i use TPanels as a container for each Item the list getting slow and flickery after adding about 100 items.
i'm looking for an alternative…

Somebody
- 703
- 1
- 7
- 23
1
vote
4 answers
Delphi Component Not Painted
I have component (descendat of TPanel) where I implemented Transparency and BrushStyle (using TImage) properties.
All it's ok when I have one component of this type on the form. Bun when I pun on the form more components of this type only first…
Dumitru
1
vote
2 answers
Flicker in Gradient panel
I have inherited a control from TPanel and in the Paint event handler, I have drawn the entire client rect using a gradient. This works perfectly fine until the user resizes.
When the panel is resized, the panel component flickers too much.
How can…

Rahul W
- 833
- 11
- 26
1
vote
0 answers
Delphi - Issue rendering TPanel descendant in TScrollBox (32K pixel limit)
I am new here and hope that I am following the right protocol and asking the question correctly. I am posting this question separately here as I do not have the appropriate privileges to post a comment against the original issue listed/linked…

Rohit
- 909
- 1
- 9
- 20
1
vote
1 answer
c++ builder: dynamically remove all TPanel's from TFramedVertScrollBox
In my C++ Builder Project i have a TFramedVertScrollBox (pnl_art_box) which dynamically gets TPanel's. I want to clear out all existing TPanel's before adding the "new" ones.
for(int i = 0; i < this->pnl_art_box->ComponentCount; i++)
{
// this…

Timo Treichel
- 358
- 3
- 14
1
vote
2 answers
Display help topic from CHM on a VCL TPanel?
Using C++ Builder 10 Seattle (CX10).
I have a .chm with map IDs for certain topics. I can load the topics into an external window like this:
#include "Vcl.HTMLHelpViewer.hpp"
#pragma link "Vcl.HTMLHelpViewer"
// In the main form…

Kathleen
- 108
- 7
1
vote
1 answer
How can I display a Delphi form in a panel?
I've tried to follow the example of http://docwiki.embarcadero.com/CodeExamples/XE7/en/FMXEmbeddedForm_(Delphi) but I hit my first problem with the children of TCustomForm, which are apparently read only, so I commented that out and put in…

Friso
- 2,328
- 9
- 36
- 72
1
vote
2 answers
TPanel in extra unit (with designer)
I want to create a single window application where several panels can be accessed from a small menu. I want to slide the panels in from one side.
I have done a small demo application and everything works. The only problem is, that i have about 7…

Marks
- 3,613
- 5
- 31
- 46
0
votes
1 answer
Custom TPanel Border
I can make TPanel Border as Black by disabling "Ctl3D" and TPanel Border Style as "bsSingle" and TPanel BevelKind as "bkNone" and TPanel BevelInner "bvNone". But my need is to make TPanel Border as "Blue" or "Red". The other way is to "Caliing Form…

Koushik Halder
- 445
- 1
- 9
- 15
0
votes
1 answer
How set Panel position always above of hole region?
I have a code that creates a hole in Form using the mouse.
var
FormRegion, HoleRegion: HRGN;
begin
FormRegion := CreateRectRgn(0, 0, Form1.Width, Form1.Height);
HoleRegion := CreateRectRgn(X1, Y1, X2, Y2);
CombineRgn(FormRegion, FormRegion,…
user13342561
0
votes
1 answer
I want to draw on the TPanel in C++Builder
I dynamically add several TImage controls to a TPanel, and want to draw lines between them, but TPanel does not have Canvas. You can draw on a TPaintBox, but I cannot use TImage smiles on it. Tell me how to get out of this simple situation.

Dan49
- 21
- 2
0
votes
2 answers
how to copy all the TLabels parented with a TPanel on delphi to another TPanel?
I have a TPanel on a delphi form, I want to copy all the TLabels
parented with this TPanel when i press a button and put them
in other panel.
Is there a way to do that?
Thanks.

alexzm1
- 563
- 2
- 7
- 14
0
votes
1 answer
Dynamically add panel control to a dynamic tabsheet (C++ Builder Rad Studio)?
I have a problem getting the tabPage->Name value, because it will generate when user click the button, first block of my code will create new tabsheet inside PageControl3 and then I use the static int tabNumber; by if condition to generate the…

Nazari
- 438
- 1
- 9
- 20