Exemple #1
0
 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));
        }
Exemple #4
0
 private void Ttmensaje_Popup(object sender, PopupEventArgs e)
 {
 }
Exemple #5
0
 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)
 {
 }
Exemple #8
0
 private void TtMensagem_Popup(object sender, PopupEventArgs e)
 {
 }
Exemple #9
0
 private void htmlToolTip1_Popup(object sender, PopupEventArgs e)
 {
 }
Exemple #10
0
 /// <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);
 }
Exemple #11
0
 private void MetroToolTip_Popup(object sender, PopupEventArgs e)
 {
     //e.ToolTipSize = new Size(e.ToolTipSize.Width + 24, e.ToolTipSize.Height + 9);
 }
Exemple #12
0
 private void ToolTip1_Popup(object sender, PopupEventArgs e)
 {
     toolTip1.ToolTipTitle = Tr("Explanation");
 }
 private void Tooltip_Popup(object sender, PopupEventArgs e)
 {
     Tooltip.IsBalloon = true;
 }
Exemple #14
0
 protected static void OnPopupOpening(PopupEventArgs e)
 {
     if (PopupOpening != null)
     {
         PopupOpening(null, e);
     }
 }
Exemple #15
0
 private void toolTipOtherFeatures_Popup(object sender, PopupEventArgs e)
 {
 }
Exemple #16
0
 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;
 }
Exemple #18
0
 private void tltExpandir_Popup(object sender, PopupEventArgs e)
 {
 }
 void OnTipPopup(object sender, PopupEventArgs e)
 {
     this.tipVisible = true;
 }
Exemple #20
0
 /// <inheritdoc />
 protected void toolTip1_Popup(object sender, PopupEventArgs e)
 {
     _mousePoint = System.Windows.Forms.Cursor.Position;            // + new Size(0,0);
 }
Exemple #21
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) { }
        }
Exemple #22
0
 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");
 }
Exemple #25
0
 private void ttChequeType_Popup(object sender, PopupEventArgs e)
 {
 }
Exemple #26
0
 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);
 }
Exemple #30
0
 internal static void RaisePopupOpening(PopupEventArgs e)
 {
     OnPopupOpening(e);
 }
Exemple #31
0
 private void ToolTip1_Popup(object sender, PopupEventArgs e)
 {
     e.ToolTipSize = new Size(e.ToolTipSize.Width - 7, e.ToolTipSize.Height - 5);
 }
Exemple #32
0
 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);
         }
     }
 }
Exemple #33
0
 void toolTip_Popup(object sender, PopupEventArgs e)
 {
     e.ToolTipSize = TextRenderer.MeasureText(tttext, new Font("Arial", 16.0f));
 }