Beispiel #1
0
        private void gridCardValuation_ScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
        {
            e.Delay = 1;
            GridDataCellElement cell = e.Item as GridDataCellElement;

            Valuation valuation = (Valuation)cell?.RowInfo.DataBoundItem;

            if (valuation?.Card.Img == null)
            {
                return;
            }

            cell.ScreenTip = GetScreenTip(valuation.Card);
        }
Beispiel #2
0
        private void gridMyCollection_ScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
        {
            e.Delay = 1;
            GridDataCellElement cell = e.Item as GridDataCellElement;

            Card card = (Card)cell?.RowInfo.DataBoundItem;

            if (card?.Img == null)
            {
                return;
            }

            cell.ScreenTip = GetScreenTip(card);
        }
Beispiel #3
0
 protected override void OnScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
 {
     for (RadElement ownerElement = this.ownerElement; ownerElement != null && ownerElement.ElementTree != null && ownerElement.ElementTree.Control != null; ownerElement = ((RadPopupControlBase)ownerElement.ElementTree.Control).OwnerElement)
     {
         if (!(ownerElement.ElementTree.Control is RadDropDownMenu))
         {
             if (ownerElement.ElementTree.Control is RadControl)
             {
                 ((RadControl)ownerElement.ElementTree.Control).CallOnScreenTipNeeded(sender, e);
                 break;
             }
             break;
         }
     }
     base.OnScreenTipNeeded(sender, e);
 }
Beispiel #4
0
        private void radGridView1_ScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
        {
            e.Delay = 1;
            GridDataCellElement cell = e.Item as GridDataCellElement;

            KeyValuePair <Card, int>?card = (KeyValuePair <Card, int>?)cell?.RowInfo.DataBoundItem;

            if (card?.Key.Img == null)
            {
                return;
            }

            byte[]       bytes = _wc.DownloadData(card.Value.Key.Img);
            MemoryStream ms    = new MemoryStream(bytes);

            _screenTip.MainTextLabel.Image  = Image.FromStream(ms);
            _screenTip.MainTextLabel.Text   = "";
            _screenTip.CaptionVisible       = false;
            _screenTip.FooterVisible        = false;
            _screenTip.MainTextLabel.Margin = new Padding(-5, -35, -15, -20);

            _screenTip.AutoSize = true;
            cell.ScreenTip      = _screenTip;
        }
Beispiel #5
0
 private void radComboTimeZone_ScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
 {
     this.screenTip.CaptionLabel.Text  = "DateTime Zone";
     this.screenTip.MainTextLabel.Text = "DateTimeConverter converts OLE Automation date to DateTime date for concrete time zone.";
     e.Item.ScreenTip = screenTip;
 }
Beispiel #6
0
 private void radTextBox1_ScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
 {
     this.screenTip.CaptionLabel.Text  = "Unit Price Expression";
     this.screenTip.MainTextLabel.Text = "UnitPriceConverter evaluates the equation for each Unit Price data cell and replace its display value with the result.";
     e.Item.ScreenTip = screenTip;
 }
Beispiel #7
0
 void grdLister_ScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
 {
     ShowScreenTipForCellStats(e.Item as GridDataCellElement);
 }
Beispiel #8
0
 protected override void OnScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
 {
     base.OnScreenTipNeeded(sender, e);
     ((IComponentTreeHandler)this.RibbonBarElement.ElementTree.Control).CallOnScreenTipNeeded(sender, e);
 }