如题所述
Edit1.Hint := 'Enter your name';
Edit1.ShowHint := True;
Screen.HintFont.Color := clblue;//é¢è²
Screen.HintFont.Name:= 'å®ä½';//åä½
Screen.HintFont.Size:= 10;//å大å°
application.ShowHint:=true;
éME
Edit1.ShowHint := True;
Screen.HintFont.Color := clblue;//é¢è²
Screen.HintFont.Name:= 'å®ä½';//åä½
Screen.HintFont.Size:= 10;//å大å°
application.ShowHint:=true;
éME
温馨提示:答案为网友推荐,仅供参考
第1个回答 2011-05-27
procedure TForm1.Button1Click(Sender: TObject);
begin
Edit1.Hint := 'Enter your name';
Edit1.ShowHint := True;
Screen.HintFont.Color := clblue;//颜色
Screen.HintFont.Name:= '宋体';//字体
Screen.HintFont.Size:= 10;//字大小
application.ShowHint:=true;
end;
begin
Edit1.Hint := 'Enter your name';
Edit1.ShowHint := True;
Screen.HintFont.Color := clblue;//颜色
Screen.HintFont.Name:= '宋体';//字体
Screen.HintFont.Size:= 10;//字大小
application.ShowHint:=true;
end;