1、constructor:
backcolor=2^29
2、写个自定义事件 event_id:pbm_paint
//ib_paintst 是个Boolean类型的实例变量,需要定义一下
if IsValid(this) then //主要是这里的问题
if ib_paintst then Return 0
ib_paintst = True
Visible = False
Do While Yield()
Loop
Visible = True
ib_paintst = False
end if
Return 0