要自己写代码处理:完整代码向我要 [email protected] QQ56299927composite.verticalBar.addSelectionListener(new OnVScrollSelectionAdapter());
class OnVScrollSelectionAdapter implements SelectionListener
{
public void widgetSelected(SelectionEvent e)
{
CGridCtrl cl=((CGridCtrl)((ScrollBar)e.getSource()).getParent());
cl.onVScrollSelection(e);
}
public void widgetDefaultSelected(SelectionEvent e)
{
}
}
protected void onVScrollSelection(SelectionEvent e)
{
onPaint();//利用paint事件处理视图区更新
}
class OnVScrollSelectionAdapter implements SelectionListener
{
public void widgetSelected(SelectionEvent e)
{
CGridCtrl cl=((CGridCtrl)((ScrollBar)e.getSource()).getParent());
cl.onVScrollSelection(e);
}
public void widgetDefaultSelected(SelectionEvent e)
{
}
}
protected void onVScrollSelection(SelectionEvent e)
{
onPaint();//利用paint事件处理视图区更新
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货