By: John Kaster
Abstract: What I Learned from Customer Reactions to Delphi 4 at PC Expo
Docking Controls and Forms
In the following screen shot, the application is displayed with its default forms visible.
Next, I have dropped three forms with data-related graphs onto the main form's TPageControl with its DockSite property set to True. Because the PageControl is a tabbed control, each form ends up being docked to a separate tab sheet. The caption of the form becomes the caption of the tab sheet.
The "Windows" button displays a form called "Reduce Complexity". The DockSite and UseDockManager properties of this blank form are set to True so it can dock and tile other windowed controls. By dragging the tab of any of the three graphs displayed above, I can undock that just-docked form, and redock it onto the blank form. Here's the "Reduce Complexity" form after I've dragged and docked the graphs onto it:
The forms can again be undocked by either double-clicking on the double lines at the top of each graph or by grabbing the top of each graph and dragging it off the dockable form. I'll do some more docking later when I cover Master/Detail tables in the enhanced DBGrid if this wasn't enough for you.
Try Delphi XE4 free for 30 days
New Instant Trial!
Webinars on demand!
More social media choices:
Delphi on Google+
@RADTools on Twitter
Server Response from: ETNASC03