What is the proper way to remove a control (button) from a TAdvToolBar?
The opposite of AddToolBarControl().
I'vee tried various combination sof Destroy*(), Free() and RemoveComponent() but none seem to work completely.
And, more generally, is there a way to remove all the components on the toolbar without destroying and recreating the toolbar?
Perform a Free of the component on the toolbar.
After destroying the needed components this way, call
AdvToolBar.Update;
Thank you, I ended up doing;
with MyAdvToolBar do
for i := ToolBarControlCount - 1 downto 0 do
ToolBarControls.Free;