public void Present (Control control, string text)
{
if (IsDisposed)
return;
Size display_size;
//XplatUI.GetDisplaySize (out display_size);
display_size = new System.Drawing.Size(200,40);
associated_control = control;
Text = text;
PopupEventArgs pea = new PopupEventArgs (control, control, false, Size.Empty);
OnPopup (pea);
if (pea.Cancel)
return;
Size size = pea.ToolTipSize;
Width = size.Width;
Height = size.Height;
int cursor_w, cursor_h, hot_x, hot_y;
//XplatUI.GetCursorInfo (control.Cursor.Handle, out cursor_w, out cursor_h, out hot_x, out hot_y);
Point loc = Control.MousePosition;
//loc.Y += (cursor_h - hot_y);
if ((loc.X + Width) > display_size.Width)
loc.X = display_size.Width - Width;
//if ((loc.Y + Height) > display_size.Height)
// loc.Y = Control.MousePosition.Y - Height - hot_y;
Location = loc;
Visible = true;
}