hello,
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.
always get NULL in element :-(
my code:
Infragistics.Win.UltraWinStatusBar.UltraStatusPanel panel; panel = this.StatusBar.Panels["extendedInfo"]; //panel is not null there Infragistics.Win.UIElement element = this.StatusBar.UIElement.GetDescendant(typeof(Infragistics.Win.UltraWinStatusBar.PanelUIElement), panel); if (element != null) //is always null Console.WriteLine(element.Rect);
You may be calling this code too early. The UIElement won't be there unless the panel is actually on the screen and visible. So if you try to do this in the Form_Load, it won't work because the control hasn't painted yet.
ok
THX