请教以下一句代码如何翻译
- C# code
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));this.ResumeLayout(false);翻译成delphi的??该如何翻译??
[解决办法]
一个delphifont的例子
font: TFont;
begin
font := TFont.Create;
font.Name := 'Microsoft Sans Serif';
//font.Style := [fsBold, fsItalic];
//font.Color := clblack;
font.Height := 72;
Canvas.Font := font;
Canvas.TextOut(10, 10, S);
font.Free;
[解决办法]
SuspendLayout 和 ResumeLayout 配合使用
类似于 先锁定界面 绘制界面 再解锁,防止闪烁