Exemple #1
0
 void AddFindControlEvents()
 {
     fControl.FindButton.GotFocus  += new EventHandler(FindControl_GotFocus);
     fControl.FindEdit.GotFocus    += new EventHandler(FindControl_GotFocus);
     fControl.ClearButton.GotFocus += new EventHandler(FindControl_GotFocus);
     fControl.FindButton.Leave     += new EventHandler(FindControl_Leave);
     fControl.FindEdit.Leave       += new EventHandler(FindControl_Leave);
     fControl.ClearButton.Leave    += new EventHandler(FindControl_Leave);
     fControl.FindButton.Image      = global::DevExpress.MailClient.Win.Properties.Resources.Search;
     fControl.ClearButton.Image     = global::DevExpress.MailClient.Win.Properties.Resources.Delete_16x16;
     fControl.FindButton.TabStop    = false;
     fControl.ClearButton.TabStop   = false;
     fControl.CalcButtonsBestFit();
 }
        public static void SetFindControlImages(GridControl grid)
        {
            FindControl fControl = null;

            foreach (Control ctrl in grid.Controls)
            {
                fControl = ctrl as FindControl;
                if (fControl != null)
                {
                    break;
                }
            }
            if (fControl != null)
            {
                fControl.FindButton.Image  = global::DevExpress.MailClient.Win.Properties.Resources.Search;
                fControl.ClearButton.Image = global::DevExpress.MailClient.Win.Properties.Resources.Delete_16x16;
                fControl.CalcButtonsBestFit();
            }
        }
Exemple #3
0
        public static void SetFindControlImages(GridControl grid)
        {
            grid.ForceInitialize();
            FindControl fControl = null;

            foreach (Control ctrl in grid.Controls)
            {
                fControl = ctrl as FindControl;
                if (fControl != null)
                {
                    break;
                }
            }
            if (fControl != null)
            {
                fControl.FindButton.Image  = global::TaskManager.Properties.Resources.Search;
                fControl.ClearButton.Image = global::TaskManager.Properties.Resources.Delete_16x16;
                fControl.CalcButtonsBestFit();
            }
        }
Exemple #4
0
        public static void SetFindControlImages(GridControl grid)
        {
            FindControl fControl = null;

            foreach (Control ctrl in grid.Controls)
            {
                fControl = ctrl as FindControl;
                if (fControl != null)
                {
                    break;
                }
            }
            if (fControl != null)
            {
                fControl.FindButton.ImageOptions.SvgImage      = global::DevExpress.ProductsDemo.Win.Properties.Resources.Search1;
                fControl.FindButton.ImageOptions.SvgImageSize  = new Size(16, 16);
                fControl.ClearButton.ImageOptions.SvgImage     = global::DevExpress.ProductsDemo.Win.Properties.Resources.Delete;
                fControl.ClearButton.ImageOptions.SvgImageSize = new Size(16, 16);
                fControl.CalcButtonsBestFit();
            }
        }