如何使TEdit的Text右对齐
解决方案 »
- 不能设置类chartarea的height属性
- 谁知道FoxMail收件人输入框的TZRichEdit是怎么实现文本块操作的?
- 一个图像处理的算法问题,请教大家?
- 为何无法使用ADOTable连Access?
- 存储过程问题?!~~~~
- 多谢帮忙,请snaper (snaper) 来领分
- SOS~
- 在做报表时,预览左右显示不全,但又没有左右滚动条,如何显示滚动条?谢谢!
- 报表问题? help up
- 问个buffer问题
- Sql Server 中 float与real和numeric的區別﹖
- 50分:TdbEdit连接的是一个时间类型的字段,当输入不合法时如何抢到系统给出错误提示之前我自己做合法性检查
procedure TForm1.Edit1Exit(Sender: TObject);
begin
setwindowlong(edit1.handle, GWL_STYLE,
getwindowlong(edit1.handle, GWL_STYLE)
and not ES_AUTOHSCROLL or ES_MULTILINE or ES_Right);
edit1.invalidate;
end;
或:
1. SetWindowLong(Edit1.Handle, GWL_STYLE, GetWindowLong(Edit1.Handle, GWL_STYLE) or ES_MULTILINE or ES_RIGHT);
2. 写Edit1的OnKeyDown事件:
procedure TForm1.Edit1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
if Key = VK_RETURN then
Key := 0;
end;