W wangxinf2 Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-07 #1 有没有办法,将edit中的文字以右边对齐,而不是通常的以左边开始的? 即输入的文字靠近右边。
H hbezwwl Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-07 #2 继承TEdit,重载CreateParams,修改Param即可。 procedure TEdit_Ex.CreateParams(var Params: TCreateParams); begin inherited; if self.FTextOnRight then Params.Style:=Params.Style or ES_RIGHT; end;
继承TEdit,重载CreateParams,修改Param即可。 procedure TEdit_Ex.CreateParams(var Params: TCreateParams); begin inherited; if self.FTextOnRight then Params.Style:=Params.Style or ES_RIGHT; end;
U ugvanxk Unregistered / Unconfirmed GUEST, unregistred user! 2002-04-07 #3 http://www.delphibbs.com/delphibbs/dispq.asp?lid=870605