Skip to content

Commit

Permalink
add logo
Browse files Browse the repository at this point in the history
  • Loading branch information
bezzad committed Aug 22, 2017
1 parent 669f930 commit 0e6ac7a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 35 deletions.
23 changes: 11 additions & 12 deletions MaterialSkin/Controls/MaterialSingleLineTextField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ public HorizontalAlignment TextAlignment

public bool UseSystemPasswordChar { get { return _baseTextBox.UseSystemPasswordChar; } set { _baseTextBox.UseSystemPasswordChar = value; } }
public char PasswordChar { get { return _baseTextBox.PasswordChar; } set { _baseTextBox.PasswordChar = value; } }


public override bool AutoSize { get { return _baseTextBox.AutoSize; } set { _baseTextBox.AutoSize = value; } }

[Browsable(true), EditorBrowsable(EditorBrowsableState.Always)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
[Description("Hint text, when text box is empty this value be superseded."), Category("Appearance")]
Expand All @@ -56,7 +58,7 @@ public string Hint
}
get { return _baseTextBox.Hint; }
}

[Browsable(true), EditorBrowsable(EditorBrowsableState.Always)]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
[Description("Is Numerical TextBox? if value is true then just typed numbers, and if false then typed any chars."), Category("Behavior")]
Expand Down Expand Up @@ -120,7 +122,9 @@ public bool AcceptMathChars
}
}
private bool _acceptMathChars;




#endregion

#region Forwarding events to baseTextBox
Expand Down Expand Up @@ -1027,7 +1031,7 @@ public event EventHandler TextAlignChanged
#endregion

#region PreInitialized Events

private void _baseKeyUp(KeyEventArgs e)
{
base.OnKeyUp(e);
Expand Down Expand Up @@ -1114,7 +1118,7 @@ public MaterialSingleLineTextField()
ForeColor = SkinManager.GetPrimaryTextColor(),
Location = new Point(0, 0),
Width = Width,
Height = Height - 5
Height = Height// - 5
};

if (!Controls.Contains(_baseTextBox) && !DesignMode)
Expand All @@ -1138,11 +1142,6 @@ public MaterialSingleLineTextField()
TabStop = false;
}

private void _baseTextBox_KeyDown(object sender, KeyEventArgs e)
{
throw new NotImplementedException();
}

#region Methods

protected override void OnPaint(PaintEventArgs pevent)
Expand Down Expand Up @@ -1178,8 +1177,8 @@ protected override void OnResize(EventArgs e)

_baseTextBox.Location = new Point(0, 0);
_baseTextBox.Width = Width;

Height = _baseTextBox.Height + 5;
_baseTextBox.Height = Height;
//Height = _baseTextBox.Height + 5;
}

protected override void OnCreateControl()
Expand Down
43 changes: 20 additions & 23 deletions MaterialSkinExample/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added Solution Items/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0e6ac7a

Please sign in to comment.