新建用户对象uo_comctl_statusbar,然后把用户对象拖至mdi窗口内,name改为uo_statusbar
然后在窗口的open事件里写以下代码
long ll_Parts[3]
integer li_width
string ls_statusbar_txt
uo_statusbar.Resize(-1, -1)
li_width = UnitsToPixels(this.workspacewidth(), YUnitsToPixels!)
llparts[1] = round(li_width * 0.4, 0)
llParts[2] = round(li_width * 0.7, 0)
llparts[3] = round(li_width * 1.0, 0)
uo_statusbar.of_SetParts(llParts )
BringWindowToTop( handle(uo_statusbar) )
//第一栏为系统的微帮助
uo_statusbar.of_SetText(0, 0, GetApplication().MicroHelpDefault)
//第二栏为操作员
uo_statusbar.of_SetText(1, 0, '操作员:系统管理员')
//第三栏为时间
uo_statusbar.of_SetText(2, 0, string(today(), 'YYYY-MM-DD') + ' ' + String( now(), "hh:mm:ss" ) )
uo_comctl_statusbar 源文件如下