Double click to hide contents of the timeline, console, and texture viewer
This commit is contained in:
parent
8b2c8466fc
commit
5d0254a5e2
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -166,6 +166,7 @@
|
||||
this.stPanel1.Name = "stPanel1";
|
||||
this.stPanel1.Size = new System.Drawing.Size(440, 186);
|
||||
this.stPanel1.TabIndex = 3;
|
||||
this.stPanel1.DoubleClick += new System.EventHandler(this.stPanel1_DoubleClick);
|
||||
//
|
||||
// stTabControl2
|
||||
//
|
||||
|
@ -172,5 +172,22 @@ namespace FirstPlugin.Forms
|
||||
OnLoadedTab();
|
||||
}
|
||||
}
|
||||
|
||||
bool IsTimelineVisable = true;
|
||||
int controlHeight = 0;
|
||||
private void stPanel1_DoubleClick(object sender, EventArgs e)
|
||||
{
|
||||
if (IsTimelineVisable)
|
||||
{
|
||||
controlHeight = stTabControl2.Height;
|
||||
IsTimelineVisable = false;
|
||||
stPanel1.Height -= (controlHeight - 25);
|
||||
}
|
||||
else
|
||||
{
|
||||
IsTimelineVisable = true;
|
||||
stPanel1.Height += (controlHeight + 25);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user