2014-01-08 09:46:57 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace CodeImp.DoomBuilder.Controls
|
|
|
|
|
{
|
|
|
|
|
internal partial class HintsPanel : UserControl
|
|
|
|
|
{
|
|
|
|
|
public HintsPanel() {
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
hints.Clear();
|
|
|
|
|
}
|
|
|
|
|
|
2014-01-23 13:36:51 +00:00
|
|
|
|
//hints should be in rtf markup!
|
|
|
|
|
internal void SetHints(string hintsText) {
|
2014-01-08 09:46:57 +00:00
|
|
|
|
hints.Clear();
|
2014-01-23 13:36:51 +00:00
|
|
|
|
hints.SelectedRtf = hintsText;
|
2014-01-08 09:46:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
internal void ClearHints() {
|
|
|
|
|
hints.Clear();
|
|
|
|
|
}
|
2014-01-09 11:31:34 +00:00
|
|
|
|
|
|
|
|
|
// Fight TextBoxes habit of not releasing the focus by using a carefully placed label
|
|
|
|
|
private void hints_Enter(object sender, EventArgs e) {
|
|
|
|
|
label1.Focus();
|
|
|
|
|
}
|
2014-01-08 09:46:57 +00:00
|
|
|
|
}
|
|
|
|
|
}
|