화면 » Api
  
getscrollpos
  
Description
화면의 스크롤바 현재 위치를 가져오는 API이다.
  
  
Parameters
  
    
      | Parameters | 
      Type | 
      Description | 
    
  
  
        
    
        | nBar | 
        short | 
 	수평, 수직 스크롤(*Remark 참조) | 
      
  
  
Return Value
  
    
      | Type | 
      Description | 
    
  
  
    
      | long | 
      스크롤의 현재 위치 | 
    
  
Remark
**nBar (수평, 수직 스크롤)
XFD_SB_HORZ = 0
XFD_SB_VERT = 1
  
 
  
Example
function btnScrollPos_on_mouseup()
{
	var scrTab = tabTest.getchildscreeninstance(0);
	scrTab.scroll(60, 50);	// 60, 50 위치로 스크롤
	if(factory.isobject(scrTab)) {
		var nScrollXPos = scrTab.getscrollpos(XFD_SB_HORZ);
		var nScrollYPos = scrTab.getscrollpos(XFD_SB_VERT);
		screen.alert("스크롤위치 : (" + nScrollXPos + "," + nScrollYPos + ")");
	}
}
  
Viewer Ver.
9.1.1.1
  
Update Date
 20110415