tpanel

How to draw on a TPanel

I need to draw on a TPanel, ideally directly so I don't have another component on top of it getting in the way of mousevent-event trapping (I want to draw a little "size-grip" on it). How should I go about doing this? ...

Delphi Component Not Painted

Hi all, 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 visible component is painted. When form is moved and first component is under other ...

How to print TPanel contents?

I have TPanel. On this Panel there is an TImage descendant , few other panels with controls, etc. In fact, picture contains some diagram, while additional panels with labels are created during runtime to provide user with additional info. Recently I was told, that it would be nice, if it was possible to print this panel, and have it on t...

Create an exact copy of TPanel on Delphi5

I have a TPanel pnlMain, where several dynamic TPanels are created (and pnlMain is their Parent) according to user actions, data validations, etc. Every panel contains one colored grid full of strings. Apart from panels, there are some open source arrows components and a picture. Whole bunch of stuff. Now I want user to be able to print...

Delphi: How to programmatically adjust visual ordering of components with align = alTop

I've got a form with a number of panels, each of which has Align=alTop, so they stack down nicely from the top of the form. However, I want to dynamically change the appearance order of these panels - i.e, move them up and down. What's the best way of doing this? ...

make a Delphi TPanel caption wrap

Is there a way to wrap the text in a TPanel.Caption in Delphi (in my case Delphi 6)? thanks! ...

Delphi - Duplicate tpanel and tbuttons on second form

On my main form I have a TPanel containing buttons that act as a toolbar. I want to clone/copy this toolbar and the buttons and their funtionality to a second form. Cloning the menu was simple using newmenu.merge(mainmenu). That was an excellent shortcut to duplicating a Tmainmenu. But I am at a loss on how to easily duplicate my too...

how to create TCustomControl behave like Tpanel?

how to create TCustomControl behave like Tpanel? like MyCustmComponent for example. That can drop a components in it like labels, images etc. sorry for my english.. ...