即开始时,Edit.visible=false,Button.text="hide";
单击奇数次时 Edit.visible=true,Button.text="show";
单击偶数次时,仍为 Edit.visible=false,Button.text="hide";另 如Edit内文字过多,如何使之多行显示?应调整那一种参数?该如何调整?
单击奇数次时 Edit.visible=true,Button.text="show";
单击偶数次时,仍为 Edit.visible=false,Button.text="hide";另 如Edit内文字过多,如何使之多行显示?应调整那一种参数?该如何调整?
解决方案 »
- 如何在windows98下成立建立与sql server2000的连接
- 请教线程关闭的问题。
- 这样可以的吗?-^-)
- 如果判断一个应用程序已经启动?请进
- 如何在使用Perform时传入wParam 和 lParam
- 怎样判断ImageEnView图片为空?
- 服务器与多客户端如何通讯,如向客户端发送关机指令
- 各位老大,紧急求助,有关 gif,jpeg,图像公司各是那个?
- 如何在Tlistview控件中画上背景图象
- 请问各位能否介绍一下弹出菜单和消息机制有关方面的内容,不胜感谢
- socket编程,如果客户端先断开服务器端就发生内存地址错误
- 怎么用Delphi将数据备份到指定位置的ACCESS数据库?
直接在button的click事件里写...
Edit.visible:=not Edit.visible;
if edit.visible then button.text:="show"
else
button.text:='hide';
begin
edit1.Visible:=not edit1.Visible;
if button1.Caption='show' then button1.Caption:='hide'
else button1.Caption:='show';
end;
begin
edit.visible = not edit.visible;
if edit.visible then
begin
button.text='hide';
end;
else
button.text = 'show'
end;
if edit.visible then button.text:="show"
else
button.text:='hide';
Edit.visible:=not Edit.visible;
if edit.visible then button.text:="show"
else
button.text:='hide';
if trim(button.text)='show' then
button.text:='hide'
else
button.text:='show';
begin
edit1.Visible:=not edit1.Visible;
if button1.Caption='show' then button1.Caption:='hide'
else button1.Caption:='show';
end;
begin
edit1.Visible:=not edit1.Visible;
if Trim(button1.Caption)='show' then button1.Caption:='hide'
else button1.Caption:='show';
end;