"disappearance" of a toolbar (TADVToolBar) after changing the style

Hi

Please fin enclose a project to describe the "disappearance" of a toolbar after changing the style when the Visible property is set to false before changing the style,
Project5.zip (10.0 KB)
and set to true after.

Kind regards

olivier

Hi

I detected an other situation where the toobar "disappear" because its width is set to 0.

Here's a project that demonstrates this
Project5.zip (10.5 KB)

Regards

While it is debatable whether it makes sense to have an autosizing empty but small visible toolbar, we applied a fix for this.

Hi Bruno

I agree. However, I presented a "simple" case. In reality, the situation is much more complex.

However, it should be noted that the 1st situation is completely different: The toolbar is filled with visible elements, but is itself invisible, so the width is not zero. It's by changing the style that the size of the (invisible) toolbar becomes zero.

Thanks for your answer

Regards
olivier

As I said, we applied a fix for the issue with your demo and I hope it will also address the more complex app for which we do not have the test code.