Jump to content
Gord P

Custom title bar (TTitleBarPanel) breaks form designer

Recommended Posts

Very simple to reproduce.

1. Add a TTitleBarPanel to the form.

2. In the Form's CustomTitleBar property, set Enable to True and set Control to TitleBarPanel1 as you are supposed to.

3. Drag the corner handle for the Form to resize and voila - instead of the form getting bigger, it stays the same size and white space shows up (see image below). The same happens if you increase the width or height properties of the form in the object inspector.

 

When you run the program the form shows up as the increased size.

If you add a button to the white area it doesn't show up at design time but does show up at run time.

 

I don't see this issue online or in QP.  Any idea what is happening?  Am I supposed to change a setting somewhere when using TTitleBarPanel or is this a bug?

 

I am using C++Builder (11.3) but I am sure this is not language specific (if someone can confirm this with a Delphi installation that would great - thanks)

 

image.thumb.png.98b4b67faf439aba7b67ad32e7cbd4da.png

 

 

Share this post


Link to post

Hmm.  Okay.  Thanks to you both. 

 

Well it does it for me every time on two different installations (one VM and one not).  Maybe I was mistaken that it had nothing to do with the C++ personality.

 

Share this post


Link to post

I've installed a new version of Delphi 11.3 on windows ll and I have the same problem with the form's right/bottom edges disappearing after you add a TTitlebar. The problem persists even after removing the Titlebar.

Any idea how to resolve this?

 

DelphiTitleBarBug.png

Share this post


Link to post
5 hours ago, Van said:

I've installed a new version of Delphi 11.3 on windows ll and I have the same problem with the form's right/bottom edges disappearing after you add a TTitlebar. The problem persists even after removing the Titlebar.

Any idea how to resolve this?

Never used TTitlebar but this sounds like there are related units left in the uses clause after removing the component. So maybe the problem hides in some initialization section?

Edited by uligerhardt

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×