2011-09-01 2 views

답변

3

Text.getSelectionCount()의 구현을 보면 그것을 할 사소한 : 또한 MyCCombo 자신을 구현할 수 있습니다

Point selection = myCCombo.getSelection(); 
int selectionCount = selection.y - selection.x; 

:

class MyCCombo extends CCombo { 
    ... 
    public int getSelectionCount() { 
     Point selection = getSelection(); 
     return selection.y - selection.x; 
    } 
} 
+0

가 나는 항상 "픽셀"악보 "포인트"를 바라 보았다. .. 부끄러운 줄 Text.getSelectionCount() 코드를 놓치지 ... 고마워! – marcolopes

관련 문제