Recent

Author Topic: How to add component to TPanel?  (Read 5303 times)

kernel

  • Newbie
  • Posts: 3
How to add component to TPanel?
« on: December 30, 2009, 11:59:26 am »
Hello,

I have only this simple question, but I cant find answer.

Thanks for help.

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: How to add component to TPanel?
« Reply #1 on: December 30, 2009, 12:19:46 pm »
Within designer just drop it there. If you wish to add items dynamically, use Owner and Parent.

aButton:=TButton.Create(Panel1); //Owner
aButton.Parent:=Panel1; //Parent
Lazarus 1.7 (SVN) FPC 3.0.0

kernel

  • Newbie
  • Posts: 3
Re: How to add component to TPanel?
« Reply #2 on: December 30, 2009, 12:28:36 pm »
thanks a lot, i really havent seen it there before.

 

TinyPortal © 2005-2018