스크롤 외 영역의 컨트롤을 화면에 보이도록 스크롤을 이동하는 API이다.
Type | Description |
---|---|
void | 없음 |
* 해당 컨트롤이 스크롤 외 영역에 있다면 스크롤이 움직여 해당 컨트롤을 화면에 보이게 스크롤을 이동한다. * 이 API는 포커스를 주는 것이 아니므로 만약 줌과 동시에 포커스를 갖게 하려면 컨트롤.setfocus() 컨트롤.ensurevisible() 이렇게 동시에 사용하거나 컨트롤.setfocusex(true) 이런식으로 사용해야 한다.
function btn_ensurevisible_on_mouseup()
{
var instBtn = tabTest.getchildinstancebyname(1, "btnclear");
if(factory.isobject(instBtn)) {
instBtn.ensurevisible();
instBtn.setfocus();
}
// 버튼에 포커스를 주면서 스크롤 이동
}