mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-04-29 11:34:13 +02:00
26 lines
829 B
C#
26 lines
829 B
C#
using System;
|
|
using System.Drawing;
|
|
using System.Windows.Forms;
|
|
|
|
namespace TweetDck.Core.Controls{
|
|
sealed partial class TabButton : FlatButton{
|
|
public Action Callback { get; private set; }
|
|
|
|
public void SetupButton(int locationX, int sizeWidth, string title, Action callback){
|
|
Callback = callback;
|
|
|
|
SuspendLayout();
|
|
FlatAppearance.BorderColor = Color.DimGray;
|
|
FlatAppearance.MouseDownBackColor = Color.White;
|
|
FlatAppearance.MouseOverBackColor = Color.White;
|
|
FlatStyle = FlatStyle.Flat;
|
|
Location = new Point(locationX, 0);
|
|
Margin = new Padding(0);
|
|
Size = new Size(sizeWidth, 30);
|
|
Text = title;
|
|
UseVisualStyleBackColor = true;
|
|
ResumeLayout(true);
|
|
}
|
|
}
|
|
}
|