mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-12-11 21:01:22 +00:00
15b2adfe30
Fixed, Texture Browser Form: well, I broke "Tab" key functionality again (in previous commit)... Maintenance: changed curly braces style to match DB2 one (hopefully not breaking anything in the process...). Maintenance: changed private method names casing to match DB2 one.
32 lines
620 B
C#
32 lines
620 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace CodeImp.DoomBuilder.Controls
|
|
{
|
|
internal partial class HintsPanel : UserControl
|
|
{
|
|
public HintsPanel()
|
|
{
|
|
InitializeComponent();
|
|
hints.Clear();
|
|
}
|
|
|
|
//hints should be in rtf markup!
|
|
internal void SetHints(string hintsText)
|
|
{
|
|
hints.Clear();
|
|
hints.SelectedRtf = hintsText;
|
|
}
|
|
|
|
internal void ClearHints()
|
|
{
|
|
hints.Clear();
|
|
}
|
|
|
|
// Fight TextBoxes habit of not releasing the focus by using a carefully placed label
|
|
private void hints_Enter(object sender, EventArgs e)
|
|
{
|
|
label1.Focus();
|
|
}
|
|
}
|
|
}
|