Questions tagged [tpanel]

tpanel is a VCL control implementing a generic panel control.It is defined in ExtCtrls.pas unit.

45 questions
0
votes
0 answers

What must I set so that the label text will wordwrap respective to the parent panel's width?

I'm using C++ Builder. I have created a panel and set the width of said panel to 350. I am using the following code to create labels. TLabel* tempLabel = new TLabel(this); tempLabel->Parent = Panel6; tempLabel->Caption = temp->Text; tempLabel->Top =…
HappyCoding
  • 641
  • 16
  • 36
0
votes
2 answers

How can I Create a Interactive Panel of Options Similar to TeamViewer (hide/show)?

I do not know how to call an interactive panel of tools like TeamViewer has. My question is very objective: How can I create a interactive panel where the panel will hide/show at any moment? Example: EDIT: I found a possible solution (code…
user9672569
0
votes
0 answers

Delphi XE4 Tpanel doesnt change color

In my program (Chess) i need to generate a lot of Tpanels with a specific background color(black or white). Tpanels are created, but, despite setting the color, they remain colorless. for i := 1 to 8 do for j := 1 to 8 do begin …
0
votes
2 answers

C++ Builder RAD Studio XE7 change color of a Panel

After pushing a button I wanted to change the color of a panel to green: ErrorDetectorPanel->Brush->Color = clLime; doesn´t work. ErrorDetectorPanel->Color = clLime; ErrorDetectorPanel->Refresh(); doesn´t work. with this…
Lama Dingo
  • 123
  • 1
  • 11
0
votes
1 answer

How to maximize a form in a Tpanel using delphi

i'm trying to dynamically show a form in a TPanel using this function procedure Show_form_in_panel(form: TForm; Panel: Tpanel); begin form.Parent := Panel; form.Show; form.WindowState := wsMaximized; end; the form is showing very normal…
Oussaki
  • 1,449
  • 2
  • 21
  • 30
0
votes
1 answer

bring to back doesnt work in c++ builder bcb6

I have a TFrame with some components on it, and among all it I have a TPanel and a TPaintBox such that the PaintBox size is the same as the Panel. I would like that user will see the Panel and not only the PaintBox. The problem is that when I right…
user687459
  • 143
  • 5
  • 17
0
votes
1 answer

How can I use a form's global variable to put it in a panel?

This is a continuation of my question: How can I display a Delphi form in a panel? I want to use a forms global variable to embed it in a panel to display it now, but it only creates the form to embed, without it's buttons. In the code of the…
Friso
  • 2,328
  • 9
  • 36
  • 72
0
votes
2 answers

Resize a TLayout according to the number of labels in Firemonkey

here is my sample code in Firemonkey; var f: integer; Label1: TLabel; MyStringArray: TArray; Panel1: TPanel; Layout1: TLayout; begin Layout1.Align := TAlignLayout.Client; MyStringArray :=…
Juande
  • 73
  • 1
  • 10
0
votes
1 answer

Changing TPanel fontsize to fit the caption

I am using Delphi XE5 and I have a TPanel Caption: 0,00 USD Width: 185 Height: 41 What i need to do is to change the fontsize according to text width / height to fit the panel. Let's say the panel should show 1,25 USD, Fontsize will be 25 but if…
blacksun
  • 733
  • 7
  • 24
0
votes
2 answers

How to access TPanel child form controls?

I have a main form with TPanel. I have also a Form2 with a TButton which I show in TPanel as a child. I mean TPanel of main form is parent of Form2. I use these steps to create the form2 in MainForm OnCreate method MainFormOnCreate() Form2 :=…
0
votes
1 answer

In Win API how to get position of progressbar of another application, if it realized by TPanel of Delphi?

need to get position of progress-bar of another application. MS Spy++ points that is TPanel. It can change colour and has numeral position state. How to get all of this in Win API?
-1
votes
1 answer

TPanel.AutoSize does not work with nested panels in a special configuration

In a Delphi 10.4.2 win-32 VCL Application in Windows 10, I use several nested TPanel: Paste these controls on an empty form: object Panel1: TPanel Left = 0 Top = 0 Width = 494 Height = 299 Align = alClient BevelOuter = bvNone TabOrder…
user1580348
  • 5,721
  • 4
  • 43
  • 105
-1
votes
1 answer

"Abstract error" when Drag and drop TPanel child

I'm facing the Abstract error when i Drag and Dropping a TPanel child in a TImage component. Basically i have a Scrollbox contain a TPanelCargaRele list and when i drag and drop this panel to the Trash i get the Abstract error. I've debugged my…
pedro.olimpio
  • 1,478
  • 2
  • 22
  • 43
-5
votes
1 answer

Array of TPanel in Delphi not show

for y:=32 downto 1 do begin for x := 1 to 16 do begin PanelArray[x,y]:=TPanel.create(self); PanelArray[x,y].parent:=self; PanelArray[x,y].Color:=clBlack; PanelArray[x,y].Enabled:=true; PanelArray[x,y].Show; …
mbtutu
  • 1
-5
votes
1 answer

In Delphi how I can set a TPanel variable type to null?

Helo, I have the following stuff: selectedPanel should get the clicked panel object, and if the form is clicked, selectedPanel should be "null", nada, empty, etc :) var selectedBlock: Tpanel; <== fixed typo ... procedure…
Aram Alvarez
  • 536
  • 6
  • 21
1 2
3