使用定时器Timer,在定时器的事件用int自增,然后分别对3600,60,取余,取模,分别得到时分秒,然后拼接字符串,记得拼接时将int转换为str,然后定义长时间类型“ LongTimeFormat = "hh:nn:ss";TimeSeparator = ':'; ”,转换成时间格式“StrToTime(string)”,然后在StatusBar对应的item显示
转载于:https://my.oschina.net/u/3044416/blog/795242
使用定时器Timer,在定时器的事件用int自增,然后分别对3600,60,取余,取模,分别得到时分秒,然后拼接字符串,记得拼接时将int转换为str,然后定义长时间类型“ LongTimeFormat = "hh:nn:ss";TimeSeparator = ':'; ”,转换成时间格式“StrToTime(string)”,然后在StatusBar对应的item显示
转载于:https://my.oschina.net/u/3044416/blog/795242