读书人

openoffice -将文本写下到状态栏的宏

发布时间: 2013-02-03 12:33:31 作者: rapoo

openoffice --将文本写入到状态栏的宏
Sub Main
StatusText("hello world")
End Sub

Function ProgressBar
ProgressBar = ThisComponent.CurrentController.StatusIndicator
End Function

REM display text in status bar
Sub StatusText(sInformation as String)
Dim iLen As Integer
Dim iRest as Integer
iLen = Len(sInformation)
iRest = 270-iLen
ProgressBar.start(sInformation+SPACE(iRest),0)
End Sub

读书人网 >OFFICE教程

热点推荐