Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
395
location of an UltraStatusPanel in UltraStatusBar
posted

hello,

is there is a possibility to determine the position of an UltraStatusPanel in UltraStatusBar.
I would like to show an own tooltip ower there.
THX
Parents
No Data
Reply
  • 469350
    Offline posted

    Try something like this:


                UltraStatusPanel panel = this.ultraStatusBar1.Panels[0];
                UIElement element = this.ultraStatusBar1.UIElement.GetDescendant(typeof(PanelUIElement), panel);
                if (element != null)
                    Debug.WriteLine(element.Rect);

    This will give you the rect of the panel within the status bar control. You will probably want to call RectangleToScreen on the control to get the screen rect to show a tooltip.

Children