more edits
This commit is contained in:
parent
0a6faf41ec
commit
8fa0a826fc
|
|
@ -141,13 +141,25 @@ static class SubstringExtensions
|
||||||
//credit to https://stackoverflow.com/questions/23247941/c-sharp-how-to-remove-tabcontrol-border
|
//credit to https://stackoverflow.com/questions/23247941/c-sharp-how-to-remove-tabcontrol-border
|
||||||
public partial class TabControlWithoutHeader : TabControl
|
public partial class TabControlWithoutHeader : TabControl
|
||||||
{
|
{
|
||||||
public TabControlWithoutHeader()
|
int layoutval = 1;
|
||||||
|
|
||||||
|
public TabControlWithoutHeader(int layout)
|
||||||
{
|
{
|
||||||
if (!DesignMode) Multiline = true;
|
layoutval = layout;
|
||||||
|
if (layoutval == 1)
|
||||||
|
{
|
||||||
|
if (!DesignMode) Multiline = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void WndProc(ref Message m)
|
protected override void WndProc(ref Message m)
|
||||||
{
|
{
|
||||||
|
if (layoutval == 2)
|
||||||
|
{
|
||||||
|
base.WndProc(ref m);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (m.Msg == 0x1328 && !DesignMode)
|
if (m.Msg == 0x1328 && !DesignMode)
|
||||||
m.Result = new IntPtr(1);
|
m.Result = new IntPtr(1);
|
||||||
else
|
else
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ namespace NovetusLauncher
|
||||||
this.button73 = new System.Windows.Forms.Button();
|
this.button73 = new System.Windows.Forms.Button();
|
||||||
this.button72 = new System.Windows.Forms.Button();
|
this.button72 = new System.Windows.Forms.Button();
|
||||||
this.panel2 = new System.Windows.Forms.Panel();
|
this.panel2 = new System.Windows.Forms.Panel();
|
||||||
this.tabControl1 = new TabControlWithoutHeader();
|
this.tabControl1 = new TabControlWithoutHeader(1);
|
||||||
this.tabPage1 = new System.Windows.Forms.TabPage();
|
this.tabPage1 = new System.Windows.Forms.TabPage();
|
||||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||||
this.button61 = new System.Windows.Forms.Button();
|
this.button61 = new System.Windows.Forms.Button();
|
||||||
|
|
@ -108,7 +108,7 @@ namespace NovetusLauncher
|
||||||
this.label2 = new System.Windows.Forms.Label();
|
this.label2 = new System.Windows.Forms.Label();
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
this.tabPage2 = new System.Windows.Forms.TabPage();
|
this.tabPage2 = new System.Windows.Forms.TabPage();
|
||||||
this.tabControl2 = new TabControlWithoutHeader();
|
this.tabControl2 = new TabControlWithoutHeader(1);
|
||||||
this.tabPage10 = new System.Windows.Forms.TabPage();
|
this.tabPage10 = new System.Windows.Forms.TabPage();
|
||||||
this.label10 = new System.Windows.Forms.Label();
|
this.label10 = new System.Windows.Forms.Label();
|
||||||
this.textBox2 = new System.Windows.Forms.TextBox();
|
this.textBox2 = new System.Windows.Forms.TextBox();
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -32,10 +32,23 @@ namespace NovetusLauncher
|
||||||
//
|
//
|
||||||
// The InitializeComponent() call is required for Windows Forms designer support.
|
// The InitializeComponent() call is required for Windows Forms designer support.
|
||||||
//
|
//
|
||||||
InitializeComponent();
|
|
||||||
|
|
||||||
Size = new Size(745, 377);
|
#if RETAIL
|
||||||
panel2.Size = new Size(646, 272);
|
int layout = 1;
|
||||||
|
|
||||||
|
if (layout == 1)
|
||||||
|
{
|
||||||
|
InitializeComponent(1);
|
||||||
|
Size = new Size(745, 377);
|
||||||
|
panel2.Size = new Size(646, 272);
|
||||||
|
}
|
||||||
|
if (layout == 2)
|
||||||
|
{
|
||||||
|
InitializeComponent(2);
|
||||||
|
Size = new Size(427, 395);
|
||||||
|
panel2.Visible = false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// TODO: Add constructor code after the InitializeComponent() call.
|
// TODO: Add constructor code after the InitializeComponent() call.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue