Ejemplo n.º 1
0
        void galleryControlClient1_Paint(object sender, PaintEventArgs e)
        {
            GalleryControlClient client = sender as GalleryControlClient;

            if (dragItemHitInfo != null)
            {
                Point         p       = galleryControl1.PointToClient(Cursor.Position);
                RibbonHitInfo hitInfo = galleryControl1.CalcHitInfo(p);
                if (hitInfo.InGalleryGroup)
                {
                    GalleryControlGalleryViewInfo info = galleryControl1.Gallery.GetViewInfo() as GalleryControlGalleryViewInfo;
                    Rectangle rect = info.Groups[galleryControl1.Gallery.Groups.IndexOf(hitInfo.GalleryItemGroup)].Bounds;
                    rect.Offset(0, client.Bounds.Top * -1);
                    e.Graphics.DrawLine(new Pen(Color.PowderBlue, 3), new Point(rect.Left, rect.Bottom), new Point(rect.Right, rect.Bottom));
                }
            }
        }
Ejemplo n.º 2
0
 private void InitializeComponent()
 {
     this.galleryControlClient1 = new DevExpress.XtraBars.Ribbon.GalleryControlClient();
     ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
     this.SuspendLayout();
     //
     // galleryControlClient1
     //
     this.galleryControlClient1.GalleryControl = this;
     this.galleryControlClient1.Location       = new System.Drawing.Point(0, 0);
     this.galleryControlClient1.Size           = new System.Drawing.Size(0, 0);
     //
     // myGalleryControl
     //
     this.Controls.Add(this.galleryControlClient1);
     ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 3
0
 private void InitializeComponent()
 {
     this.label1                = new System.Windows.Forms.Label();
     this.galleryControl1       = new Cats21.Module.Win.Editors.myGalleryControl();
     this.galleryControlClient1 = new DevExpress.XtraBars.Ribbon.GalleryControlClient();
     this.button1               = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this.galleryControl1)).BeginInit();
     this.galleryControl1.SuspendLayout();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(17, 13);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(61, 13);
     this.label1.TabIndex = 0;
     this.label1.Text     = "CAT SHOW";
     //
     // galleryControl1
     //
     this.galleryControl1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                          | System.Windows.Forms.AnchorStyles.Left)
                                                                         | System.Windows.Forms.AnchorStyles.Right)));
     this.galleryControl1.Controls.Add(this.galleryControlClient1);
     this.galleryControl1.Location = new System.Drawing.Point(0, 58);
     this.galleryControl1.Name     = "galleryControl1";
     this.galleryControl1.Size     = new System.Drawing.Size(760, 367);
     this.galleryControl1.TabIndex = 1;
     this.galleryControl1.Text     = "galleryControl1";
     this.galleryControl1.Resize  += new System.EventHandler(this.galleryControl1_Resize);
     //
     // galleryControlClient1
     //
     this.galleryControlClient1.GalleryControl = this.galleryControl1;
     this.galleryControlClient1.Location       = new System.Drawing.Point(2, 2);
     this.galleryControlClient1.Size           = new System.Drawing.Size(739, 363);
     //
     // button1
     //
     this.button1.Location = new System.Drawing.Point(492, 25);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(82, 33);
     this.button1.TabIndex = 2;
     this.button1.Text     = "button1";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // CatShowControl
     //
     this.AutoSize = true;
     this.Controls.Add(this.button1);
     this.Controls.Add(this.galleryControl1);
     this.Controls.Add(this.label1);
     this.MinimumSize = new System.Drawing.Size(200, 200);
     this.Name        = "CatShowControl";
     this.Size        = new System.Drawing.Size(760, 425);
     ((System.ComponentModel.ISupportInitialize)(this.galleryControl1)).EndInit();
     this.galleryControl1.ResumeLayout(false);
     this.ResumeLayout(false);
     this.PerformLayout();
 }