Click here to Skip to main content
12,349,911 members (24,560 online)
Click here to Skip to main content

Stats

97.4K views
1.4K downloads
75 bookmarked
Posted

FireEdit

, 4 Apr 2006 CPOL
FireEdit - a small code editor with plugins support
using System;
using System.Collections.Generic;
using System.Text;
using Fireball.Windows.Forms;
using System.Drawing.Drawing2D;
using System.Drawing;

namespace FireEdit.Themes
{
    class FireEditLineMarginRender :  LineMarginRender
    {
        private LinearGradientBrush _brush = null;

        public override System.Drawing.Rectangle Bounds
        {
            get
            {
                return base.Bounds;
            }
            set
            {
                if (!this.Bounds.Equals(value))
                {
                    _brush = new LinearGradientBrush(value,
                        SystemColors.Control, SystemColors.ControlLightLight,
                        LinearGradientMode.Horizontal);
                }
                base.Bounds = value;
            }
        }

        public override void Render(Graphics gfx)
        {
            gfx.FillRectangle(_brush, this.Bounds);
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

dotnetfireball
Web Developer
Italy Italy
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160621.1 | Last Updated 4 Apr 2006
Article Copyright 2006 by dotnetfireball
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid