Changed: scrolling container

This commit is contained in:
Ray committed 2020-05-07 23:31:03 +01:00
1 parent 3b4f19ae40
commit 9575ae8ffb
12 files changed
+111 -77

No files matched your search

+14 -5
View File
@@ -1,6 +1,7 @@
namespace RyzStudio.Windows.ThemedForms
{
using System;
using RyzStudio.Drawing;
using System;
using System.ComponentModel;
using System.Drawing;
@@ -19,6 +20,7 @@
label1.MouseLeave += delegate { this.VisualState = ButtonState.Normal; };
label1.MouseDown += delegate { this.VisualState = ButtonState.Down; };
label1.MouseUp += delegate { this.VisualState = ButtonState.Normal; };
}
protected override void OnLoad(EventArgs e)
@@ -31,9 +33,9 @@
this.StyleDefault = new ButtonStyle(Color.White, Color.Black, this.DefaultImage);
this.VisualState = ButtonState.Normal;
}
}
protected ButtonState VisualState
protected ButtonState VisualState
{
get { return buttonState; }
set
@@ -71,9 +73,16 @@
label1.ForeColor = style.PenColour;
label1.BackColor = style.BackColour;
label1.Image = style.ForeImage;
}
[Browsable(true)]
//var rect = label1.ClientRectangle;
////rect.Inflate(-3, -3);
//Rectangoid area = new Rectangoid(rect, 3, 1);
//label1.Region = new Region(area.ToGraphicsPath());
}
[Browsable(true)]
[Category("Appearance")]
public string LabelText { get => label1.Text; set => label1.Text = value; }
+5 -5
View File
@@ -28,12 +28,12 @@
base.OnPaintBackground(e);
Graphics g = e.Graphics;
//// g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
//// g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
//// g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;
//// g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
//g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
//g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality;
//g.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;
//g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
updateBackground(g, styleActive);
updateBackground(g, styleActive);
}
[Browsable(false), EditorBrowsable(EditorBrowsableState.Never)]