本文整理汇总了C#中Client.MirControls.MirTextBox.MultiLine方法的典型用法代码示例。如果您正苦于以下问题:C# MirTextBox.MultiLine方法的具体用法?C# MirTextBox.MultiLine怎么用?C# MirTextBox.MultiLine使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Client.MirControls.MirTextBox
的用法示例。
在下文中一共展示了MirTextBox.MultiLine方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReportDialog
public ReportDialog()
{
Index = 1633;
Library = Libraries.Prguse;
Movable = true;
Sort = true;
Location = Center;
CloseButton = new MirButton
{
HoverIndex = 361,
Index = 360,
Location = new Point(336, 3),
Library = Libraries.Prguse2,
Parent = this,
PressedIndex = 362,
Sound = SoundList.ButtonA,
};
CloseButton.Click += (o, e) => Hide();
ReportType = new MirDropDownBox()
{
Parent = this,
Location = new Point(12, 35),
Size = new Size(170, 14),
ForeColour = Color.White,
Visible = true,
Enabled = true,
};
ReportType.Items.Add("Select Report Type.");
ReportType.Items.Add("Submit Bug");
ReportType.Items.Add("Report Player");
MessageArea = new MirTextBox
{
Parent = this,
Location = new Point(12, 57),
Size = new Size(330, 150),
Font = new Font(Settings.FontName, 8F),
};
MessageArea.MultiLine();
SendButton = new MirButton
{
Parent = this,
Library = Libraries.Title,
Index = 607,
HoverIndex = 608,
PressedIndex = 609,
Sound = SoundList.ButtonA,
Location = new Point(260, 219)
};
SendButton.Click += SendButton_Click;
}
示例2: MemoDialog
public MemoDialog()
{
Index = 209;
Library = Libraries.Title;
Movable = true;
Sort = true;
Location = Center;
MemoTextBox = new MirTextBox
{
ForeColour = Color.White,
Parent = this,
Font = new Font(Settings.FontName, 8F),
Location = new Point(15, 30),
Size = new Size(165, 100),
};
MemoTextBox.MultiLine();
OKButton = new MirButton
{
Index = 382,
HoverIndex = 383,
PressedIndex = 384,
Parent = this,
Library = Libraries.Title,
Sound = SoundList.ButtonA,
Location = new Point(30, 133)
};
OKButton.Click += (o, e) =>
{
Network.Enqueue(new C.AddMemo { CharacterIndex = Friend.Index, Memo = MemoTextBox.Text });
Hide();
};
CancelButton = new MirButton
{
Index = 385,
HoverIndex = 386,
PressedIndex = 387,
Parent = this,
Library = Libraries.Title,
Sound = SoundList.ButtonA,
Location = new Point(115, 133)
};
CancelButton.Click += (o, e) => Hide();
#region Buttons
CloseButton = new MirButton
{
HoverIndex = 361,
Index = 360,
Location = new Point(168, 3),
Library = Libraries.Prguse2,
Parent = this,
PressedIndex = 362,
Sound = SoundList.ButtonA,
};
CloseButton.Click += (o, e) => Hide();
#endregion
}
示例3: GuildDialog
//.........这里部分代码省略.........
{
HoverIndex = 361,
Index = 360,
Location = new Point(565, 4),
Library = Libraries.Prguse2,
Parent = this,
PressedIndex = 362,
Sound = SoundList.ButtonA
};
CloseButton.Click += (o, e) => Hide();
#endregion
#endregion
#region NoticePageUI
NoticePage = new MirImageControl()
{
Parent = this,
Size = new Size(352, 372),
Location = new Point(0, 60),
Visible = true
};
Notice = new MirTextBox()
{
ForeColour = Color.White,
Font = new Font(Settings.FontName, 8F),
Enabled = false,
Visible = true,
Parent = NoticePage,
Size = new Size(322, 330),
Location = new Point(13, 1)
//sorting = true
};
Notice.MultiLine();
NoticeEditButton = new MirButton
{
Visible = false,
Index = 560,
HoverIndex = 561,
PressedIndex = 562,
Library = Libraries.Prguse,
Sound = SoundList.ButtonA,
Parent = NoticePage,
Location = new Point(20, 342)
};
NoticeEditButton.Click += (o, e) => EditNotice();
NoticeSaveButton = new MirButton
{
Visible = false,
Index = 554,
HoverIndex = 555,
PressedIndex = 556,
Library = Libraries.Prguse,
Sound = SoundList.ButtonA,
Parent = NoticePage,
Location = new Point(20, 342)
};
NoticeSaveButton.Click += (o, e) => EditNotice();
NoticeUpButton = new MirButton
{
HoverIndex = 198,
Index = 197,
Visible = true,
示例4: GuildDialog
//.........这里部分代码省略.........
};
#endregion
CloseButton = new MirButton
{
HoverIndex = 361,
Index = 360,
Location = new Point(563, 6),
Library = Libraries.Prguse2,
Parent = this,
PressedIndex = 362,
Sound = SoundList.ButtonA
};
CloseButton.Click += (o, e) => Hide();
#region "notice tab"
NoticePage = new MirImageControl()
{
Parent = this,
Size = new Size(567, 368),
Location = new Point(13, 37),
Visible = true
};
Notice = new MirTextBox()
{
ForeColour = Color.White,
Font = new Font(Settings.FontName, 8F),
Enabled = false,
Visible = true,
Parent = NoticePage,
Size = new Size(550, 325),
Location = new Point(0, 0)
};
Notice.MultiLine();
NoticeEditButton = new MirButton
{
Visible = false,
Index = 85,
HoverIndex = 86,
PressedIndex = 84,
Library = Libraries.Title,
Sound = SoundList.ButtonA,
Parent = NoticePage,
Location = new Point(27, 337)
};
NoticeEditButton.Click += (o, e) => EditNotice();
NoticeSaveButton = new MirButton
{
Visible = false,
Index = 82,
HoverIndex = 83,
PressedIndex = 84,
Library = Libraries.Title,
Sound = SoundList.ButtonA,
Parent = NoticePage,
Location = new Point(27, 337)
};
NoticeSaveButton.Click += (o, e) => EditNotice();
NoticeUpButton = new MirButton
{
HoverIndex = 312,
Library = Libraries.Prguse,
Location = new Point(551, 0),
示例5: MailComposeLetterDialog
public MailComposeLetterDialog()
{
Index = 671;
Library = Libraries.Title;
Size = new Size(236, 300);
Movable = true;
Sort = true;
Location = new Point(100, 100);
CloseButton = new MirButton
{
HoverIndex = 361,
Index = 360,
Location = new Point(Size.Width - 27, 3),
Library = Libraries.Prguse2,
Parent = this,
PressedIndex = 362,
Sound = SoundList.ButtonA,
};
CloseButton.Click += (o, e) => Hide();
RecipientNameLabel = new MirLabel
{
Text = "",
Parent = this,
Font = new Font(Settings.FontName, 8F),
ForeColour = Color.White,
Location = new Point(70, 35),
Size = new Size(150, 15),
NotControl = true,
};
MessageTextBox = new MirTextBox
{
ForeColour = Color.White,
Parent = this,
Font = new Font(Settings.FontName, 8F),
Location = new Point(15, 92),
Size = new Size(202, 165),
};
MessageTextBox.MultiLine();
SendButton = new MirButton
{
Index = 607,
HoverIndex = 608,
PressedIndex = 609,
Parent = this,
Library = Libraries.Title,
Sound = SoundList.ButtonA,
Location = new Point(30, 265)
};
SendButton.Click += (o, e) =>
{
Network.Enqueue(new C.SendMail { Name = RecipientNameLabel.Text, Message = MessageTextBox.Text });
Hide();
};
CancelButton = new MirButton
{
Index = 193,
HoverIndex = 194,
PressedIndex = 195,
Parent = this,
Library = Libraries.Title,
Sound = SoundList.ButtonA,
Location = new Point(135, 265)
};
CancelButton.Click += (o, e) => Hide();
}
示例6: MailComposeParcelDialog
public MailComposeParcelDialog()
{
Index = 674;
Library = Libraries.Title;
Size = new Size(236, 384);
Movable = true;
Sort = true;
Location = new Point(GameScene.Scene.InventoryDialog.Size.Width + 10, 0);
CloseButton = new MirButton
{
HoverIndex = 361,
Index = 360,
Location = new Point(Size.Width - 27, 3),
Library = Libraries.Prguse2,
Parent = this,
PressedIndex = 362,
Sound = SoundList.ButtonA,
};
CloseButton.Click += (o, e) =>
{
ResetLockedCells();
Hide();
};
RecipientNameLabel = new MirLabel
{
Text = "",
Parent = this,
Font = new Font(Settings.FontName, 8F),
ForeColour = Color.White,
Location = new Point(70, 35),
Size = new Size(150, 15),
NotControl = true,
};
MessageTextBox = new MirTextBox
{
ForeColour = Color.White,
Parent = this,
Font = new Font(Settings.FontName, 8F),
Location = new Point(15, 98),
Size = new Size(202, 165),
};
MessageTextBox.MultiLine();
StampButton = new MirButton
{
Index = 203,
HoverIndex = 203,
PressedIndex = 203,
Location = new Point(73, 56),
Size = new Size(20,20),
Library = Libraries.Prguse2,
Parent = this,
Sound = SoundList.ButtonA,
};
StampButton.Click += (o, e) =>
{
StampParcel();
};
ItemCover = new MirImageControl
{
Index = 676,
Location = new Point(63, 310),
Size = new Size(144, 33),
Library = Libraries.Title,
Parent = this
};
for (int i = 0; i < Cells.Length; i++)
{
Cells[i] = new MirItemCell
{
BorderColour = Color.Lime,
Size = new Size(35, 31),
GridType = MirGridType.Mail,
Library = Libraries.Items,
Parent = this,
Location = new Point(27 + (i * 36), 311),
ItemSlot = i
};
}
ParcelCostLabel = new MirLabel
{
DrawFormat = TextFormatFlags.VerticalCenter,
Font = new Font(Settings.FontName, 8F),
Location = new Point(63, 269),
Parent = this,
Size = new Size(143, 15),
};
GoldSendLabel = new MirLabel
{
DrawFormat = TextFormatFlags.VerticalCenter,
Font = new Font(Settings.FontName, 8F),
Location = new Point(63, 290),
//.........这里部分代码省略.........