lua - forms.label - add an optional fixedwidth font param

This commit is contained in:
adelikat 2014-09-07 02:42:44 +00:00
parent c0bbbcd47f
commit afdfe11c7e
1 changed files with 7 additions and 1 deletions

View File

@ -346,7 +346,8 @@ namespace BizHawk.Client.EmuHawk
int? x = null,
int? y = null,
int? width = null,
int? height = null)
int? height = null,
bool fixedWidth = false)
{
var form = GetForm(formHandle);
if (form == null)
@ -355,6 +356,11 @@ namespace BizHawk.Client.EmuHawk
}
var label = new Label();
if (fixedWidth)
{
label.Font = new Font("Courier New", 8);
}
SetText(label, caption);
form.Controls.Add(label);