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

本文介绍如何使用SubMain和FunctionProgressBar在状态栏中显示文本信息,包括状态文本的设置和进度条的启动。通过示例代码演示了如何在应用程序中灵活地更新状态栏显示内容。
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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值