private void ToolTipPopupHandler(object sender, PopupEventArgs e) { e.ToolTipSize = new Size(Math.Min(e.ToolTipSize.Width, 300), e.ToolTipSize.Height); }
private void infoTooltip_Popup(object sender, PopupEventArgs e) { }
/// <summary> /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed. /// <example> /// popupeventhandler.BeginInvoke(sender, e, callback); /// </example> /// </summary> public static IAsyncResult BeginInvoke(this PopupEventHandler popupeventhandler, Object sender, PopupEventArgs e, AsyncCallback callback) { if (popupeventhandler == null) { throw new ArgumentNullException("popupeventhandler"); } return(popupeventhandler.BeginInvoke(sender, e, callback, null)); }
private void Ttmensaje_Popup(object sender, PopupEventArgs e) { }
private void toolTip1_Popup(object sender, PopupEventArgs e) { MessageBox.Show("Yeeeeaaah boyyy tryck på fittknappen är du imbecill ellör???", "HAHAHAHHAHA", MessageBoxButtons.OK, MessageBoxIcon.Information); }
void OnPopup(object sender, PopupEventArgs e) { e.ToolTipSize = new Size(m_rectBounds.Width, m_rectBounds.Height); }
private void tpInfo_Popup(object sender, PopupEventArgs e) { }
private void TtMensagem_Popup(object sender, PopupEventArgs e) { }
private void htmlToolTip1_Popup(object sender, PopupEventArgs e) { }
/// <summary> /// Changes size of tooltip. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ToolTip_Popup(object sender, PopupEventArgs e) { e.ToolTipSize = new Size(185, 65); }
private void MetroToolTip_Popup(object sender, PopupEventArgs e) { //e.ToolTipSize = new Size(e.ToolTipSize.Width + 24, e.ToolTipSize.Height + 9); }
private void ToolTip1_Popup(object sender, PopupEventArgs e) { toolTip1.ToolTipTitle = Tr("Explanation"); }
private void Tooltip_Popup(object sender, PopupEventArgs e) { Tooltip.IsBalloon = true; }
protected static void OnPopupOpening(PopupEventArgs e) { if (PopupOpening != null) { PopupOpening(null, e); } }
private void toolTipOtherFeatures_Popup(object sender, PopupEventArgs e) { }
private void toolTip_Popup(object sender, PopupEventArgs e) { toolTip.ToolTipTitle = e.AssociatedControl.Text; //toolTip.SetToolTip( e.AssociatedControl, I18N._( toolTip.GetToolTip( e.AssociatedControl ) ).Replace( "\\n", "\n" ) ); }
private void ToolTip_Popup(object sender, PopupEventArgs e) { e.Cancel = true; }
private void tltExpandir_Popup(object sender, PopupEventArgs e) { }
void OnTipPopup(object sender, PopupEventArgs e) { this.tipVisible = true; }
/// <inheritdoc /> protected void toolTip1_Popup(object sender, PopupEventArgs e) { _mousePoint = System.Windows.Forms.Cursor.Position; // + new Size(0,0); }
void ImageToolTip_Popup(object sender, PopupEventArgs e) { try { Size oldSize = e.ToolTipSize; Filename = Filename.Replace(@"\\", @"\"); if (lastFilename != Filename) { using (PIDL pidl = new PIDL(Filename)) { IntPtr hicon = Thumbnail.GetIcon(pidl.Pidl, 32); using (Bitmap bmp = Thumbnail.GetBitmapFromHBitmap(hicon)) icon = Thumbnail.ScaleImage(bmp, 32, 32); Thumbnail.DeleteObject(hicon); IntPtr himage = Thumbnail.GetThumbNail(pidl.Pidl, ImageSize); using (Bitmap bmp = Thumbnail.GetBitmapFromHBitmap(himage)) { if ((bmp.Width != ImageSize && bmp.Height != ImageSize)) { thumbnail = Thumbnail.CentreImage(bmp, ImageSize, ImageSize); } else if (bmp.Width != ImageSize || bmp.Height != ImageSize) { thumbnail = Thumbnail.ScaleImage(bmp, ImageSize, ImageSize); } else { thumbnail = Thumbnail.GetBitmapFromHBitmap(himage); } //ThumbDB.SaveBitmap(pidl.Pidl, thumbnail); } Thumbnail.DeleteObject(himage); } } string[] texts = Caption.Split(new char[] { '\r', '\n' }); using (Graphics g = Graphics.FromImage(thumbnail)) { foreach (string s in texts) { int width = (int)g.MeasureString(s, e.AssociatedControl.Font).Width + 35; if (width > oldSize.Width) { oldSize.Width = width; } } } if (ImageSize != 16) { if (thumbnail != null) { oldSize.Height += ImageSize + 3; } } oldSize.Width = oldSize.Width; if (oldSize.Width < ImageSize + 18) { oldSize.Width = ImageSize + 18; } e.ToolTipSize = oldSize; lastFilename = Filename; } catch (Exception ex) { } }
private void toolTipForLanguagesField_Popup(object sender, PopupEventArgs e) { }
private void toolTip1_Popup(object sender, PopupEventArgs e) { this.toolTip1.Show("Test", this, 100); }
private void toolTip1_Popup(object sender, PopupEventArgs e) { toolTip1.ToolTipTitle = International.GetText("Form_Settings_ToolTip_Explaination"); }
private void ttChequeType_Popup(object sender, PopupEventArgs e) { }
private void ToolTip_Popup(object sender, PopupEventArgs e) { e.ToolTipSize = new Size(e.ToolTipSize.Width + 30, e.ToolTipSize.Height); }
private void OnPopup(object sender, PopupEventArgs e) { e.ToolTipSize = new Size(200, 70); }
private void toolTip1_Popup_1(object sender, PopupEventArgs e) { }
private void OnToolTipPopup(object sender, PopupEventArgs e) { OnToolTipPopup(e); }
internal static void RaisePopupOpening(PopupEventArgs e) { OnPopupOpening(e); }
private void ToolTip1_Popup(object sender, PopupEventArgs e) { e.ToolTipSize = new Size(e.ToolTipSize.Width - 7, e.ToolTipSize.Height - 5); }
private void OnPopupStats(object sender, PopupEventArgs e) { if (e.AssociatedControl == m_dataPanel) { using (Font f = new Font("Tahoma", 9)) { e.ToolTipSize = TextRenderer.MeasureText( m_ToolTip.GetToolTip(e.AssociatedControl), f); } } }
void toolTip_Popup(object sender, PopupEventArgs e) { e.ToolTipSize = TextRenderer.MeasureText(tttext, new Font("Arial", 16.0f)); }