tx
2025-04-14 c33f54888d8fb4e1961bca69fe3d01e87fc54be6
WinFrmUI/DPumpHydr.WinFrmUI.Ribbon/Component Classes/Ribbon.cs
@@ -728,7 +728,9 @@
        public Theme Theme => _theme == null ? Theme.Standard : _theme;
        /// <summary>
        /// Gets or sets the Style of the orb
        /// Gets or sets the Style of the orb.
        ///
        /// This is where the default values are loaded when changing the OrbStyle.
        /// </summary>
        [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
        [Category("Orb")]
@@ -764,6 +766,7 @@
                    ItemMargin = new Padding(4, 2, 4, 2);
                    ItemPadding = new Padding(1, 0, 1, 0);
                    ItemImageToTextSpacing = 4;
                    this.OrbDropDown.BorderRoundness = 8;
                }
                else if ((value == RibbonOrbStyle.Office_2010) ||
                         (value == RibbonOrbStyle.Office_2010_Extended))
@@ -789,6 +792,7 @@
                    ItemMargin = new Padding(3, 2, 0, 2);
                    ItemPadding = new Padding(1, 0, 1, 0);
                    ItemImageToTextSpacing = 11;
                    this.OrbDropDown.BorderRoundness = 2;
                }
                else if (value == RibbonOrbStyle.Office_2013)
                {
@@ -813,6 +817,7 @@
                    ItemMargin = new Padding(2, 2, 0, 2);
                    ItemPadding = new Padding(1, 0, 1, 0);
                    ItemImageToTextSpacing = 11;
                    this.OrbDropDown.BorderRoundness = 2;
                }
                UpdateRegions();
                Invalidate();
@@ -2147,7 +2152,7 @@
                        caption = Rectangle.FromLTRB(0, 0, captionRight, CaptionBarSize);
                    }
                    Point screenPoint = new Point(WinApi.LoWord((int)m.LParam), WinApi.HiWord((int)m.LParam));
                    Point screenPoint = new Point(WinApi.Get_X_LParam(m.LParam), WinApi.Get_Y_LParam(m.LParam));
                    Point ribbonPoint = PointToClient(screenPoint);
                    bool onCaptionButtons = false;