Board index » cppbuilder » TSplitter and TPanel flickering

TSplitter and TPanel flickering


I have attempted to emulate the look of docking forms with TPanels by
aligning panels to each other and separating them with splitters (to look
like docked forms). The problem is, when I "dock" a panel to an existing
docked (aligned) panel, and place a TSplitter in between them, I get a lot
of flickering and movement on my form. It is nothing like the seamless and
instant dock that takes place when you dock a form to a DockSite. I would
like to be able to align panels to each other and place splitters in between
them as smooth and fast as possible.. just as fast as a form is docked to a
docksite and a splitter is created to separate it from other docked objects.
How can I do this?



Re:TSplitter and TPanel flickering

Hi, Jonathan!

You might have some success by using SendMessage with the WM_SETREDRAW
message, - have the parameter false to stop redrawing, and to true to
allow it to happen.

Check in win32.hlp for more on the SETREDRAW message and the SendMessage

Mark Cashman (TeamB - C++ Builder), creator of The Temp{*word*203}Doorway at
- Original digital art, writing, music and more -
C++ Builder / JBuilder Tips and The C++ Builder Programmer's Webring
(Join us!)

Other Threads