<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FComponents%2FMarquee_Label</id>
		<title>Csharp/C Sharp/Components/Marquee Label - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp%2FComponents%2FMarquee_Label"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/Components/Marquee_Label&amp;action=history"/>
		<updated>2026-04-29T21:53:54Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/Components/Marquee_Label&amp;diff=340&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/Components/Marquee_Label&amp;diff=340&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:18Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp/Components/Marquee_Label&amp;diff=341&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp/Components/Marquee_Label&amp;diff=341&amp;oldid=prev"/>
				<updated>2010-05-26T11:38:07Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Marquee Label Demo==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class Form1 : Form&lt;br /&gt;
{&lt;br /&gt;
        private MarqueeLabel marqueeLabel1;&lt;br /&gt;
        private System.Windows.Forms.GroupBox GroupBox1;&lt;br /&gt;
        private System.Windows.Forms.Label Label2;&lt;br /&gt;
        private System.Windows.Forms.TrackBar tbInterval;&lt;br /&gt;
        private System.Windows.Forms.Label Label1;&lt;br /&gt;
        private System.Windows.Forms.TrackBar tbAmount;&lt;br /&gt;
      public Form1() {&lt;br /&gt;
            InitializeComponent();&lt;br /&gt;
            &lt;br /&gt;
      }&lt;br /&gt;
        private void tbAmount_ValueChanged(object sender, EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            marqueeLabel1.ScrollPixelAmount = tbAmount.Value;&lt;br /&gt;
        }&lt;br /&gt;
        private void tbInterval_ValueChanged(object sender, EventArgs e)&lt;br /&gt;
        {&lt;br /&gt;
            marqueeLabel1.tmrScroll.Interval = tbInterval.Value;&lt;br /&gt;
        }&lt;br /&gt;
        private void InitializeComponent()&lt;br /&gt;
        {&lt;br /&gt;
            this.GroupBox1 = new System.Windows.Forms.GroupBox();&lt;br /&gt;
            this.Label2 = new System.Windows.Forms.Label();&lt;br /&gt;
            this.tbInterval = new System.Windows.Forms.TrackBar();&lt;br /&gt;
            this.Label1 = new System.Windows.Forms.Label();&lt;br /&gt;
            this.tbAmount = new System.Windows.Forms.TrackBar();&lt;br /&gt;
            this.marqueeLabel1 = new MarqueeLabel();&lt;br /&gt;
            this.GroupBox1.SuspendLayout();&lt;br /&gt;
            ((System.ruponentModel.ISupportInitialize)(this.tbInterval)).BeginInit();&lt;br /&gt;
            ((System.ruponentModel.ISupportInitialize)(this.tbAmount)).BeginInit();&lt;br /&gt;
            &lt;br /&gt;
            this.SuspendLayout();&lt;br /&gt;
            // &lt;br /&gt;
            // GroupBox1&lt;br /&gt;
            // &lt;br /&gt;
            this.GroupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)&lt;br /&gt;
                        | System.Windows.Forms.AnchorStyles.Left)&lt;br /&gt;
                        | System.Windows.Forms.AnchorStyles.Right)));&lt;br /&gt;
            this.GroupBox1.Controls.Add(this.Label2);&lt;br /&gt;
            this.GroupBox1.Controls.Add(this.tbInterval);&lt;br /&gt;
            this.GroupBox1.Controls.Add(this.Label1);&lt;br /&gt;
            this.GroupBox1.Controls.Add(this.tbAmount);&lt;br /&gt;
            this.GroupBox1.FlatStyle = System.Windows.Forms.FlatStyle.System;&lt;br /&gt;
            this.GroupBox1.Location = new System.Drawing.Point(22, 177);&lt;br /&gt;
            this.GroupBox1.Name = &amp;quot;GroupBox1&amp;quot;;&lt;br /&gt;
            this.GroupBox1.Size = new System.Drawing.Size(336, 132);&lt;br /&gt;
            this.GroupBox1.TabIndex = 6;&lt;br /&gt;
            this.GroupBox1.TabStop = false;&lt;br /&gt;
            // &lt;br /&gt;
            // Label2&lt;br /&gt;
            // &lt;br /&gt;
            this.Label2.Location = new System.Drawing.Point(12, 76);&lt;br /&gt;
            this.Label2.Name = &amp;quot;Label2&amp;quot;;&lt;br /&gt;
            this.Label2.Size = new System.Drawing.Size(80, 23);&lt;br /&gt;
            this.Label2.TabIndex = 6;&lt;br /&gt;
            this.Label2.Text = &amp;quot;Scroll Interval:&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // tbInterval&lt;br /&gt;
            // &lt;br /&gt;
            this.tbInterval.Location = new System.Drawing.Point(96, 72);&lt;br /&gt;
            this.tbInterval.Maximum = 500;&lt;br /&gt;
            this.tbInterval.Minimum = 10;&lt;br /&gt;
            this.tbInterval.Name = &amp;quot;tbInterval&amp;quot;;&lt;br /&gt;
            this.tbInterval.Size = new System.Drawing.Size(228, 45);&lt;br /&gt;
            this.tbInterval.TabIndex = 5;&lt;br /&gt;
            this.tbInterval.TickFrequency = 10;&lt;br /&gt;
            this.tbInterval.Value = 100;&lt;br /&gt;
            this.tbInterval.ValueChanged += new System.EventHandler(this.tbInterval_ValueChanged);&lt;br /&gt;
            // &lt;br /&gt;
            // Label1&lt;br /&gt;
            // &lt;br /&gt;
            this.Label1.Location = new System.Drawing.Point(12, 20);&lt;br /&gt;
            this.Label1.Name = &amp;quot;Label1&amp;quot;;&lt;br /&gt;
            this.Label1.Size = new System.Drawing.Size(80, 23);&lt;br /&gt;
            this.Label1.TabIndex = 4;&lt;br /&gt;
            this.Label1.Text = &amp;quot;Scroll Amount:&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // tbAmount&lt;br /&gt;
            // &lt;br /&gt;
            this.tbAmount.Location = new System.Drawing.Point(96, 16);&lt;br /&gt;
            this.tbAmount.Maximum = 20;&lt;br /&gt;
            this.tbAmount.Name = &amp;quot;tbAmount&amp;quot;;&lt;br /&gt;
            this.tbAmount.Size = new System.Drawing.Size(228, 45);&lt;br /&gt;
            this.tbAmount.TabIndex = 3;&lt;br /&gt;
            this.tbAmount.Value = 10;&lt;br /&gt;
            this.tbAmount.ValueChanged += new System.EventHandler(this.tbAmount_ValueChanged);&lt;br /&gt;
            // &lt;br /&gt;
            // marqueeLabel1&lt;br /&gt;
            // &lt;br /&gt;
            this.marqueeLabel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)&lt;br /&gt;
                        | System.Windows.Forms.AnchorStyles.Right)));&lt;br /&gt;
            this.marqueeLabel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));&lt;br /&gt;
            this.marqueeLabel1.Font = new System.Drawing.Font(&amp;quot;Verdana&amp;quot;, 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));&lt;br /&gt;
            this.marqueeLabel1.ForeColor = System.Drawing.Color.Navy;&lt;br /&gt;
            this.marqueeLabel1.Location = new System.Drawing.Point(-2, 7);&lt;br /&gt;
            this.marqueeLabel1.Name = &amp;quot;marqueeLabel1&amp;quot;;&lt;br /&gt;
            this.marqueeLabel1.tmrScroll.Interval = 100;&lt;br /&gt;
            this.marqueeLabel1.Size = new System.Drawing.Size(384, 156);&lt;br /&gt;
            this.marqueeLabel1.TabIndex = 7;&lt;br /&gt;
            this.marqueeLabel1.Tag = &amp;quot;&amp;quot;;&lt;br /&gt;
            this.marqueeLabel1.DisplayText = &amp;quot;This scrolls!&amp;quot;;&lt;br /&gt;
            // &lt;br /&gt;
            // MarqueeTestForm&lt;br /&gt;
            // &lt;br /&gt;
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);&lt;br /&gt;
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
            this.ClientSize = new System.Drawing.Size(381, 322);&lt;br /&gt;
            this.Controls.Add(this.marqueeLabel1);&lt;br /&gt;
            this.Controls.Add(this.GroupBox1);&lt;br /&gt;
            this.Font = new System.Drawing.Font(&amp;quot;Tahoma&amp;quot;, 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));&lt;br /&gt;
            this.Name = &amp;quot;MarqueeTestForm&amp;quot;;&lt;br /&gt;
            this.Text = &amp;quot;MarqueeTestForm&amp;quot;;&lt;br /&gt;
            this.GroupBox1.ResumeLayout(false);&lt;br /&gt;
            this.GroupBox1.PerformLayout();&lt;br /&gt;
            ((System.ruponentModel.ISupportInitialize)(this.tbInterval)).EndInit();&lt;br /&gt;
            ((System.ruponentModel.ISupportInitialize)(this.tbAmount)).EndInit();&lt;br /&gt;
            &lt;br /&gt;
            this.ResumeLayout(false);&lt;br /&gt;
        }&lt;br /&gt;
  [STAThread]&lt;br /&gt;
  static void Main()&lt;br /&gt;
  {&lt;br /&gt;
    Application.EnableVisualStyles();&lt;br /&gt;
    Application.Run(new Form1());&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
  public class MarqueeLabel : Control&lt;br /&gt;
  {&lt;br /&gt;
    public string DisplayText;&lt;br /&gt;
    public int ScrollPixelAmount = 10;&lt;br /&gt;
    public System.Windows.Forms.Timer tmrScroll;&lt;br /&gt;
    private int position = 0;&lt;br /&gt;
    public MarqueeLabel()&lt;br /&gt;
    {&lt;br /&gt;
      this.tmrScroll = new System.Windows.Forms.Timer(new System.ruponentModel.Container());&lt;br /&gt;
      this.tmrScroll.Tick += new System.EventHandler(this.tmrScroll_Tick);&lt;br /&gt;
      this.Size = new System.Drawing.Size(360, 104);&lt;br /&gt;
        &lt;br /&gt;
            DoubleBuffered = true;&lt;br /&gt;
            ResizeRedraw = true;&lt;br /&gt;
      tmrScroll.Enabled = true;&lt;br /&gt;
        }&lt;br /&gt;
    private void tmrScroll_Tick(object sender, System.EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
      position += ScrollPixelAmount;&lt;br /&gt;
      Invalidate();            &lt;br /&gt;
    }&lt;br /&gt;
    protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
            base.OnPaint(e);&lt;br /&gt;
      if (position &amp;gt; Width)&lt;br /&gt;
      {&lt;br /&gt;
        position = -(int)e.Graphics.MeasureString(DisplayText, Font).Width;&lt;br /&gt;
      }&lt;br /&gt;
      e.Graphics.DrawString(DisplayText, Font, new SolidBrush(ForeColor), position, 0);&lt;br /&gt;
    }&lt;br /&gt;
    }&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>