public int Checkbox(int formHandle, string caption, int?x = null, int?y = null, string option = "false") { var form = GetForm(formHandle); if (form == null) { return(0); } var checkbox = new LuaCheckbox(); checkbox.FlatStyle = FlatStyle.Standard; form.Controls.Add(checkbox); checkbox.Font = new Font("Segoe UI", 6, FontStyle.Italic); SetText(checkbox, caption); if (option == "true") { checkbox.Checked = true; } if (x.HasValue && y.HasValue) { SetLocation(checkbox, x.Value, y.Value); } return((int)checkbox.Handle); }
public int Checkbox(int formHandle, string caption, int?x = null, int?y = null) { var form = GetForm(formHandle); if (form == null) { return(0); } var checkbox = new LuaCheckbox(); form.Controls.Add(checkbox); SetText(checkbox, caption); if (x.HasValue && y.HasValue) { SetLocation(checkbox, x.Value, y.Value); } return((int)checkbox.Handle); }
public int Checkbox(int formHandle, string caption, int? x = null, int? y = null) { var form = GetForm(formHandle); if (form == null) { return 0; } var checkbox = new LuaCheckbox(); form.Controls.Add(checkbox); SetText(checkbox, caption); if (x.HasValue && y.HasValue) { SetLocation(checkbox, x.Value, y.Value); } return (int)checkbox.Handle; }