2012-08-26 19:03:12 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Windows.Forms;
|
2012-09-10 19:10:39 +00:00
|
|
|
|
using ANX.Framework.NonXNA.Development;
|
2012-08-26 19:03:12 +00:00
|
|
|
|
|
|
|
|
|
namespace ANX.ContentCompiler.GUI.Controls
|
|
|
|
|
{
|
2012-09-10 19:10:39 +00:00
|
|
|
|
[Developer("SilentWarrior/Eagle Eye Studios")]
|
|
|
|
|
[PercentageComplete(100)]
|
2012-09-24 16:53:56 +00:00
|
|
|
|
[TestState(TestStateAttribute.TestState.Tested)] //TODO: Fix the strange flickering with mono that makes the button unusable as seen on Linux
|
2012-08-26 19:03:12 +00:00
|
|
|
|
public partial class ArrowButton : UserControl
|
|
|
|
|
{
|
|
|
|
|
public ArrowButton()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[EditorBrowsable(EditorBrowsableState.Always)]
|
|
|
|
|
public String Content
|
|
|
|
|
{
|
|
|
|
|
get { return labelText.Text; }
|
|
|
|
|
set { labelText.Text = value; }
|
|
|
|
|
}
|
|
|
|
|
|
2012-08-27 19:09:10 +00:00
|
|
|
|
private void ArrowButtonMouseEnter(object sender, EventArgs e)
|
2012-08-26 19:03:12 +00:00
|
|
|
|
{
|
|
|
|
|
BorderStyle = BorderStyle.FixedSingle;
|
|
|
|
|
}
|
|
|
|
|
|
2012-08-27 19:09:10 +00:00
|
|
|
|
private void ArrowButtonMouseLeave(object sender, EventArgs e)
|
2012-08-26 19:03:12 +00:00
|
|
|
|
{
|
|
|
|
|
BorderStyle = BorderStyle.None;
|
|
|
|
|
}
|
|
|
|
|
|
2012-08-27 19:09:10 +00:00
|
|
|
|
private void ArrowButtonMouseDown(object sender, MouseEventArgs e)
|
2012-08-26 19:03:12 +00:00
|
|
|
|
{
|
2012-08-27 19:09:10 +00:00
|
|
|
|
BackColor = Settings.AccentColor3;
|
2012-08-26 19:03:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
2012-08-27 19:09:10 +00:00
|
|
|
|
private void ArrowButtonMouseUp(object sender, MouseEventArgs e)
|
2012-08-26 19:03:12 +00:00
|
|
|
|
{
|
2012-08-27 19:09:10 +00:00
|
|
|
|
BackColor = Settings.MainColor;
|
2012-08-26 19:03:12 +00:00
|
|
|
|
}
|
|
|
|
|
|
2012-08-27 19:09:10 +00:00
|
|
|
|
private void PictureBox1Click(object sender, EventArgs e)
|
2012-08-26 19:03:12 +00:00
|
|
|
|
{
|
|
|
|
|
OnClick(e);
|
|
|
|
|
}
|
|
|
|
|
|
2012-08-27 19:09:10 +00:00
|
|
|
|
private void LabelTextClick(object sender, EventArgs e)
|
2012-08-26 19:03:12 +00:00
|
|
|
|
{
|
|
|
|
|
OnClick(e);
|
|
|
|
|
}
|
2012-08-27 19:09:10 +00:00
|
|
|
|
|
|
|
|
|
private void ArrowButtonFontChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
labelText.Font = Font;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void ArrowButtonLoad(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
BackColor = Settings.MainColor;
|
|
|
|
|
ForeColor = Settings.ForeColor;
|
|
|
|
|
}
|
2012-08-26 19:03:12 +00:00
|
|
|
|
}
|
|
|
|
|
}
|