vfp习题中,怎么把label控件的标签内容设置为“时间”啊?求详细些
2个回答
展开全部
PUBLIC fm
fm = CREATEOBJECT('theForm')
fm.show
DEFINE CLASS theForm as Form
top = 100
left = 100
width = 300
height = 160
caption = 'theform'
ADD OBJECT 'label1' as lb
ADD OBJECT 'tm' as tm
ENDDEFINE
DEFINE CLASS tm as Timer
Interval = 600
PROCEDURE Timer
this.Parent.label1.caption = TIME()
this.Interval = 600
ENDPROC
ENDDEFINE
DEFINE CLASS lb as Label
top = 10
left = 10
autosize = .t.
caption = ''
ENDDEFINE
***************************是要这样的动态效果吗 每秒钟更新一次
fm = CREATEOBJECT('theForm')
fm.show
DEFINE CLASS theForm as Form
top = 100
left = 100
width = 300
height = 160
caption = 'theform'
ADD OBJECT 'label1' as lb
ADD OBJECT 'tm' as tm
ENDDEFINE
DEFINE CLASS tm as Timer
Interval = 600
PROCEDURE Timer
this.Parent.label1.caption = TIME()
this.Interval = 600
ENDPROC
ENDDEFINE
DEFINE CLASS lb as Label
top = 10
left = 10
autosize = .t.
caption = ''
ENDDEFINE
***************************是要这样的动态效果吗 每秒钟更新一次
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询