If BarManager.HideFloatingBarsWhenInactive is False - CaptionButtons of RibbonGroups (Toolbars) does not work anymore if Ribbon is collapsed.
The click is just not accepted! This is why:
procedure TdxBarDockedControl.WMNCLButtonDown(var Message: TWMNCLButtonDown);
begin
…
AActiveButtonID := GetCaptionButtonIndex(GetWindowCursorPos);
if AActiveButtonID <> -1 then
begin
-> This closes the Ribbon popup window too! -> Button disappears from screen
if not BarManager.HideFloatingBarsWhenInactive then
SetActiveWindow(BarManager.Owner.Handle);
…
case message of
WM_LBUTTONUP:
begin
-> This fails cause of the missing Button under cursor!
ASuccessfulDragging := GetCaptionButtonIndex(GetWindowCursorPos) = AActiveButtonID;
Break;
end;
To reproduce just disable HideFloatingBarsWhenInactive in the BarManager of your RibbonNotepadDemo.
Run, collapse the Ribbon and try one of the CaptionButtons.
Thanks. I have reproduced this behavior and forwarded this ticket to our developers for research.