コード例 #1
0
 private void ToolTipPopupHandler(object sender, PopupEventArgs e)
 {
     e.ToolTipSize = new Size(Math.Min(e.ToolTipSize.Width, 300), e.ToolTipSize.Height);
 }
コード例 #2
0
 private void infoTooltip_Popup(object sender, PopupEventArgs e)
 {
 }
コード例 #3
0
        /// <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));
        }
コード例 #4
0
 private void Ttmensaje_Popup(object sender, PopupEventArgs e)
 {
 }
コード例 #5
0
ファイル: Form1.cs プロジェクト: arvidl02-edu/Programmering1
 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);
 }
コード例 #6
0
 void OnPopup(object sender, PopupEventArgs e)
 {
     e.ToolTipSize = new Size(m_rectBounds.Width, m_rectBounds.Height);
 }
コード例 #7
0
 private void tpInfo_Popup(object sender, PopupEventArgs e)
 {
 }
コード例 #8
0
 private void TtMensagem_Popup(object sender, PopupEventArgs e)
 {
 }
コード例 #9
0
 private void htmlToolTip1_Popup(object sender, PopupEventArgs e)
 {
 }
コード例 #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);
 }
コード例 #11
0
 private void MetroToolTip_Popup(object sender, PopupEventArgs e)
 {
     //e.ToolTipSize = new Size(e.ToolTipSize.Width + 24, e.ToolTipSize.Height + 9);
 }
コード例 #12
0
 private void ToolTip1_Popup(object sender, PopupEventArgs e)
 {
     toolTip1.ToolTipTitle = Tr("Explanation");
 }
コード例 #13
0
 private void Tooltip_Popup(object sender, PopupEventArgs e)
 {
     Tooltip.IsBalloon = true;
 }
コード例 #14
0
ファイル: Popup.cs プロジェクト: pvginkel/SystemEx
 protected static void OnPopupOpening(PopupEventArgs e)
 {
     if (PopupOpening != null)
     {
         PopupOpening(null, e);
     }
 }
コード例 #15
0
 private void toolTipOtherFeatures_Popup(object sender, PopupEventArgs e)
 {
 }
コード例 #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" ) );
 }
コード例 #17
0
 private void ToolTip_Popup(object sender, PopupEventArgs e)
 {
     e.Cancel = true;
 }
コード例 #18
0
 private void tltExpandir_Popup(object sender, PopupEventArgs e)
 {
 }
コード例 #19
0
 void OnTipPopup(object sender, PopupEventArgs e)
 {
     this.tipVisible = true;
 }
コード例 #20
0
 /// <inheritdoc />
 protected void toolTip1_Popup(object sender, PopupEventArgs e)
 {
     _mousePoint = System.Windows.Forms.Cursor.Position;            // + new Size(0,0);
 }
コード例 #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) { }
        }
コード例 #22
0
 private void toolTipForLanguagesField_Popup(object sender, PopupEventArgs e)
 {
 }
コード例 #23
0
 private void toolTip1_Popup(object sender, PopupEventArgs e)
 {
     this.toolTip1.Show("Test", this, 100);
 }
コード例 #24
0
 private void toolTip1_Popup(object sender, PopupEventArgs e)
 {
     toolTip1.ToolTipTitle = International.GetText("Form_Settings_ToolTip_Explaination");
 }
コード例 #25
0
ファイル: frmCheck.cs プロジェクト: omid265/ZSM
 private void ttChequeType_Popup(object sender, PopupEventArgs e)
 {
 }
コード例 #26
0
ファイル: Options.cs プロジェクト: hmz777/NetStalker
 private void ToolTip_Popup(object sender, PopupEventArgs e)
 {
     e.ToolTipSize = new Size(e.ToolTipSize.Width + 30, e.ToolTipSize.Height);
 }
コード例 #27
0
 private void OnPopup(object sender, PopupEventArgs e)
 {
     e.ToolTipSize = new Size(200, 70);
 }
コード例 #28
0
 private void toolTip1_Popup_1(object sender, PopupEventArgs e)
 {
 }
コード例 #29
0
 private void OnToolTipPopup(object sender, PopupEventArgs e)
 {
     OnToolTipPopup(e);
 }
コード例 #30
0
ファイル: Popup.cs プロジェクト: pvginkel/SystemEx
 internal static void RaisePopupOpening(PopupEventArgs e)
 {
     OnPopupOpening(e);
 }
コード例 #31
0
 private void ToolTip1_Popup(object sender, PopupEventArgs e)
 {
     e.ToolTipSize = new Size(e.ToolTipSize.Width - 7, e.ToolTipSize.Height - 5);
 }
コード例 #32
0
ファイル: Calendar.cs プロジェクト: AndrianDTR/Atlantic
 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);
         }
     }
 }
コード例 #33
0
 void toolTip_Popup(object sender, PopupEventArgs e)
 {
     e.ToolTipSize = TextRenderer.MeasureText(tttext, new Font("Arial", 16.0f));
 }