private void OnCalculateToolTip(object sender, ToolTipControllerCalcSizeEventArgs e)
 {
     if (e.SelectedControl is PopupContainerEdit)
     {
         PopupContainerEdit popup = (PopupContainerEdit)e.SelectedControl;
         if (popup == this)
         {
             if (EditValue != null)
             {
                 e.Size = new Size(75, 20);
             }
             else
             {
                 e.ShowInfo.Show = false;
             }
         }
     }
 }
示例#2
0
 private void OnCalculateToolTip(object sender, ToolTipControllerCalcSizeEventArgs e)
 {
     if (e.SelectedControl is PopupContainerEdit)
     {
         PopupContainerEdit popup = (PopupContainerEdit)e.SelectedControl;
         if (popup == this)
         {
             if (EditValue != null)
             {
                 e.Size = new Size(75, 20);
             }
             else
             {
                 e.ShowInfo.Show = false;
             }
         }
     }
 }