mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-08-21 03:54:07 +02:00
Configuration
Core
Bridge
Controls
ControlExtensions.cs
FlatButton.cs
FlatProgressBar.Designer.cs
FlatProgressBar.cs
TabButton.Designer.cs
TabButton.cs
TabPanel.Designer.cs
TabPanel.cs
Handling
Notification
Other
Utils
FormBrowser.Designer.cs
FormBrowser.cs
FormBrowser.resx
TrayIcon.Designer.cs
TrayIcon.cs
Libraries
Plugins
Properties
Resources
Updates
bld
tests
.gitignore
LICENSE.md
Program.cs
README.md
Reporter.cs
TweetDck.csproj
TweetDck.sln
TweetDck.sln.DotSettings
_postbuild.bat
packages.config
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);
|
|
}
|
|
}
|
|
}
|