ExposeEvent Class |
|
命名空间: VO
ExposeEvent 类型公开以下成员。
| Name | Description | |
|---|---|---|
| ExposeEvent | 初始化 ExposeEvent 类的一个新实例 |
| Name | Description | |
|---|---|---|
| ExposedArea |
一个边界框,表示导致此暴露事件的暴露区域,以画布坐标表示。 使用这个方法优化你的重绘例程,这样它们只会绘制需要刷新的区域。 |
1METHOD Expose(oEE) CLASS MyWindow 2 LOCAL oBB AS BOUNDINGBOX 3 oBB := oEE:ExposedArea 4 5 IF oBB:Bottom() < 20 6 SELF:TextPrint("In the 20's",Point{0,20}) 7 ENDIF 8 9 IF oBB:Bottom() > 40 10 SELF:TextPrint("In the 40's",Point{0,40}) 11 ENDIF