X xiaoxiami2 Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-24 #1 问个幼稚问题,如何让edit输入的文字居右?
P Pearl. Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-24 #2 setwindowlong(edit1.handle, GWL_STYLE, getwindowlong(edit1.handle, GWL_STYLE) or ES_MULTILINE or ES_RIGHT); edit1.invalidate;
setwindowlong(edit1.handle, GWL_STYLE, getwindowlong(edit1.handle, GWL_STYLE) or ES_MULTILINE or ES_RIGHT); edit1.invalidate;
X xiaoxiami2 Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-24 #3 to pearl: 这段代码应该放在哪里呢?
P Pearl. Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-24 #4 一般放在form.OnShow里, 并且在你改变edit的字体, 颜色, ...属性后再运行一次
X xiaoxiami2 Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-24 #5 我用delphi5在win2000 server下不好使!
X xiaoxiami2 Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-25 #7 to toylin: 大侠您是什么意思,pearl说的代码对吗?
蓝 蓝色幽灵 Unregistered / Unconfirmed GUEST, unregistred user! 2002-05-25 #8 只要在Objedt Inspector下的Properties中的BiDiMode选择bdRightToLeft 就行了
T tonmy Unregistered / Unconfirmed GUEST, unregistred user! 2002-06-03 #11 改变Edit窗口的Style, 让它具备右对齐属性. 因为只有多行edit control才能实现各 种对齐, 所以需要截取Return(回车)键, 防止Return键作为输入进入edit的文本中.