mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-28 17:36:36 +00:00
Make better use of space when help is toggled off
This commit is contained in:
@@ -76,10 +76,28 @@ namespace renderdocui.Windows.Dialogs
|
||||
}
|
||||
}
|
||||
|
||||
private void hideHelp_Click(object sender, EventArgs e)
|
||||
{
|
||||
helpText.Visible = !helpText.Visible;
|
||||
}
|
||||
private void toggleHelp_Click(object sender, EventArgs e)
|
||||
{
|
||||
helpText.Visible = !helpText.Visible;
|
||||
|
||||
tableLayoutPanel1.SuspendLayout();
|
||||
|
||||
if (helpText.Visible)
|
||||
{
|
||||
tableLayoutPanel1.Controls.Remove(formatGroupBox);
|
||||
tableLayoutPanel1.Controls.Add(formatGroupBox, 0, 1);
|
||||
tableLayoutPanel1.SetRowSpan(formatGroupBox, 1);
|
||||
}
|
||||
else
|
||||
{
|
||||
tableLayoutPanel1.Controls.Remove(formatGroupBox);
|
||||
tableLayoutPanel1.Controls.Add(formatGroupBox, 0, 0);
|
||||
tableLayoutPanel1.SetRowSpan(formatGroupBox, 2);
|
||||
}
|
||||
|
||||
tableLayoutPanel1.ResumeLayout(false);
|
||||
tableLayoutPanel1.PerformLayout();
|
||||
}
|
||||
}
|
||||
|
||||
public interface IBufferFormatProcessor
|
||||
|
||||
Reference in New Issue
Block a user