protected ComposerComponent() { InitializeComponent(); TargetSite = ComponentTargetSite.Builder; base.BorderStyle = System.Windows.Forms.BorderStyle.None; }
public Markee(ComponentTargetSite targetSite) : base(targetSite) { label = new Label() { BackColor = Color.FromArgb(0, 0, 0, 0) }; textList = new List <string>(); base.BackColor = Color.LightGreen; base.Configuration = new MarkeeConfiguration(); (base.Configuration as MarkeeConfiguration).Font = label.Font; (base.Configuration as MarkeeConfiguration).Text = new List <string>(); (base.Configuration as MarkeeConfiguration).BackColor = this.BackColor; if (targetSite != ComponentTargetSite.OptionsMenu) { base.optionsForm = new MarkeeOptions() { //FooterTextList = (Configuration as FooterConfiguration).Text, //FooterDirection = (Configuration as FooterConfiguration).Direction, //FooterSpeed = (Configuration as FooterConfiguration).Speed, //FooterFont = (Configuration as FooterConfiguration).Font, //FooterBackColor = (Configuration as FooterConfiguration).BackColor, //FooterTextColor = (Configuration as FooterConfiguration).TextColor } } ; this.DoubleBuffered = true; this.OnSpeedChanged += Footer_OnSpeedChanged; this.Resize += Footer_Resize; label.DoubleClick += label_DoubleClick; //this.label.MouseEnter += label_MouseEnter; //this.label.MouseDown += label_MouseDown; //this.label.MouseMove += label_MouseMove; //this.label.MouseUp += label_MouseUp; //this.label.MouseLeave += label_MouseLeave; } void label_DoubleClick(object sender, EventArgs e) { base.OnDoubleClick(e); }
protected ComposerComponent(ComponentTargetSite targetSite) { TargetSite = targetSite; }