The DelphiVCL.ControlBar manages the layout of toolbar components as part of a low code application platform. With components like the controlbar in the DelphiVCL the amount of code you actually have to write is greatly reduced and often avoided altogether.
Use DelphiVCL.ControlBar as a docking site for toolbar components. Control bars contain child controls (usually TToolBar objects) that can be moved and resized independently. As with a cool bar, each child control resides on its band that the user positions by dragging its sizing grip.
Note: If you want to use TActionToolBar on a TControlBar component, you should set the AutoSize property to False. When the AutoSize property is set to True (default), the TActionToolBar control wraps its controls and expands itself in size, accordingly. This does not allow the TActionToolBar component to display properly on a TControlBar component. When the AutoSize property is set to False, the TActionToolBar hides items on the end of the bar and displays a dropdown button that provides access to those items. The control displays in the proper size.
Let’s browse all the properties and methods of the DelphiVCL.ControlBar using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.ControlBar) |
See the responses in our Windows command prompt:
You can also read short informations about the DelphiVCL.ControlBar using the print() command:
1 2 |
print(DelphiVCL.ControlBar) print(DelphiVCL.ControlBar.__doc__) |
See the responses in our Windows command prompt:
Check out Python4Delphi which easily allows you to build Python GUIs for Windows using Delphi.