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
947
No ToolTip on Chart created on UltraTab Page
posted

Hi,

 I have WinChart built on UserControl, and this user control is added onto UltraTab (Manually).

 However, I don't see chart's tooltip on the first tab which is created on the OnLoad events of Windows Form, but see tooltips on the subsequent tabs created manually.

 1. At Load:

protected override void OnLoad(EventArgs e_) { CreateTab(); }

2. Create Tab

_tabControl.BeginUpdate();

UltraTabsCollection tabs = _tabControl.Tabs;

UltraTab newTab = tabs.Add(newTabKey, newTabKey);

newTab.Selected = true;

//By Default, Create a ScatterChart

ChartControl newChart = new ChartControl(newTabKey) {Dock = DockStyle.Fill};

newTab.TabPage.Controls.Add(newChart);

_tabControl.EndUpdate();

 

Here, I don't see ToolTip on ChartControl.

3. But when I manually call "CreateTab" later after load, subsequent tab pages with ChartControl has tooltips.

  

 

 

Parents
  • 947
    posted

    I found that the above problem was caused because chart's tooltips had no TopLevel Control. Is this always necessary? Because when the form (that contains chart)'s parent changes, there is no mean to update tooltips's control.

     Moreover, I don't see why the chart's tooltips depend on this.

Reply Children
No Data