views:

312

answers:

3

I wondered if you have a work around for the problems with docking forms in Vista, such as the close button being partially obscured, and the gray border when being dragged rendering extremely slow, making a appearing / disappearing appearance?

Delphi 2007 & Vista (64 bit)

+1  A: 

I believe you have two different bugs here.

The obscured button thing is new to me. Don't think I've seen that one.

The second bug (resizing) is a known one, ie it was fixed in D2009, but there is a solution.

I found it in a JEDI VCL bug fix report and when I it applied to my code it worked great. JEDI Issue Tracker Report

The fix can be non trivial for users of the native Delphi VCL docking system. If you're using a third-party docking system such as JvDock from the JEDI VCL it already has it supported. I implemented it in one of my major applications but I'm using a mixture of native VCL docking and third-party components.

I wanted to post you the solution I have but I got looking into my code and it spans a bunch of units and parts of the main code tree.

There is no simple answer except maybe you want to look at the JEDI docking system.

There is also another known bug with DockingTabs under vista, in that the obscured areas of a "docked" window when they slide closed doesn't repaint properly. Slide out works fine, slide in (hide) doesn't there is a solution to this one as well, but it requires modifying VCL source to make it work.

Sorry,

Ryan

Ryan J. Mills
A: 

Hy Ryan:

Thanks for your comments. I will look into the Jedi stuff, I already use some JVCL so, I can easily do that.

I appreciate the time you took to consider this problem.

A: 

Update: I've looked into the JVCL implementation of the docking, and I think it will work quite nicely, as it doesn't have either of the problems. Thanks again for your help.