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
205
Tooltip over ControlContainer
posted

I successfully achieved usage of some controls inside a ControlContainerTool placed in toolbars.

I would handle tooltip displaying over the ControlContainerTool toolbar instance, instead of displaying tooltips over the controls hosted by the ControlContainerTool. 

Should I use the ToolTipText property of SharedProps of the ControlContainerTool? I tried such property, but it seems not to work. The contained control flood almost entirely the ControlContainerTool area and you can't see any tooltip.

Parents
  • 69832
    Offline posted

    The display of a tooltip is triggered by a MouseHover event, and when you use a control container, the tool never receives the message (since there is another control in 'front' of it), which is why the tooltip does not display.

    You could use our UltraToolTipManager component to show a tooltip for the control that you have assigned to the container tool, like so:

     

    // Create an UltraToolTipManager instance
    Infragistics.Win.UltraWinToolTip.UltraToolTipManager ttManager =
        new Infragistics.Win.UltraWinToolTip.UltraToolTipManager(this.components);
    
    // Create an UltraToolTipInfo instance
    Infragistics.Win.UltraWinToolTip.UltraToolTipInfo ttInfo =
        new Infragistics.Win.UltraWinToolTip.UltraToolTipInfo();
    
    // Set the UltraToolTipInfo properties
    ttInfo.ToolTipText = "ToolTip";
    
    // Associate the control with the UltraToolTipInfo
    ttManager.SetUltraToolTip(control, ttInfo);
    
    


     

Reply Children