diff --git a/Plugins/PluginListFlowLayout.cs b/Core/Controls/FlowLayoutPanelNoHScroll.cs similarity index 62% rename from Plugins/PluginListFlowLayout.cs rename to Core/Controls/FlowLayoutPanelNoHScroll.cs index 9f805dc0..d97c0541 100644 --- a/Plugins/PluginListFlowLayout.cs +++ b/Core/Controls/FlowLayoutPanelNoHScroll.cs @@ -1,13 +1,8 @@ using System.Windows.Forms; using TweetDuck.Core.Utils; -namespace TweetDuck.Plugins{ - sealed class PluginListFlowLayout : FlowLayoutPanel{ - public PluginListFlowLayout(){ - FlowDirection = FlowDirection.TopDown; - WrapContents = false; - } - +namespace TweetDuck.Core.Controls{ + sealed class FlowLayoutPanelNoHScroll : FlowLayoutPanel{ protected override void WndProc(ref Message m){ if (m.Msg == 0x85){ // WM_NCPAINT NativeMethods.ShowScrollBar(Handle, NativeMethods.SB_HORZ, false); // basically fuck the horizontal scrollbar very much diff --git a/Core/Other/FormPlugins.Designer.cs b/Core/Other/FormPlugins.Designer.cs index 9ae95942..7e3a8156 100644 --- a/Core/Other/FormPlugins.Designer.cs +++ b/Core/Other/FormPlugins.Designer.cs @@ -1,4 +1,4 @@ -using TweetDuck.Plugins; +using TweetDuck.Core.Controls; namespace TweetDuck.Core.Other { partial class FormPlugins { @@ -29,7 +29,7 @@ private void InitializeComponent() { this.btnClose = new System.Windows.Forms.Button(); this.btnReload = new System.Windows.Forms.Button(); this.btnOpenFolder = new System.Windows.Forms.Button(); - this.flowLayoutPlugins = new PluginListFlowLayout(); + this.flowLayoutPlugins = new FlowLayoutPanelNoHScroll(); this.timerLayout = new System.Windows.Forms.Timer(this.components); this.SuspendLayout(); // @@ -119,7 +119,7 @@ private void InitializeComponent() { private System.Windows.Forms.Button btnClose; private System.Windows.Forms.Button btnReload; private System.Windows.Forms.Button btnOpenFolder; - private PluginListFlowLayout flowLayoutPlugins; + private FlowLayoutPanelNoHScroll flowLayoutPlugins; private System.Windows.Forms.Timer timerLayout; } } \ No newline at end of file diff --git a/TweetDuck.csproj b/TweetDuck.csproj index ebe55173..b84bc2d0 100644 --- a/TweetDuck.csproj +++ b/TweetDuck.csproj @@ -247,7 +247,7 @@ <DependentUpon>PluginControl.cs</DependentUpon> </Compile> <Compile Include="Plugins\PluginDispatcher.cs" /> - <Compile Include="Plugins\PluginListFlowLayout.cs"> + <Compile Include="Core\Controls\FlowLayoutPanelNoHScroll.cs"> <SubType>Component</SubType> </Compile> <Compile Include="Configuration\PluginConfig.cs" />