2011-01-13 2 views
0

하나의 관리자 (수직), 하나의 RichTextField 및 하나의 버튼이있는 팝업 화면 (기본적으로 EULA 화면 용)을 구현하려고합니다. 나는 관리자에게 eula 텍스트를 표시하고 관리자 만이 스크롤해야 팝업 화면을 표시하지 않고 관리자 뒤에 버튼을 추가해야합니다.관리자 (블랙 베리)의 팝업 화면 스크롤 문제

문제 : RichTextField의 텍스트가 작 으면 텍스트와 버튼을 볼 수 있습니다. 그러나 텍스트가 너무 길면 관리자가 조금씩 스크롤하여 버튼을 전혀 볼 수 없습니다. 여기

내가 무슨 짓을했는지 있습니다 :

class ApplicationEulaScreen extends PopupScreen implements FieldChangeListener 
{ 
    private VerticalFieldManager mainContainer; 
    private RichTextField eulaText; 
    private ButtonField okButton; 

    ApplicationEulaScreen() 
    { 
     super(new VerticalFieldManager(VerticalFieldManager.NO_VERTICAL_SCROLL); 

     mainContainer = new VerticalFieldManager(VerticalFieldManager.VERTICAL_SCROLL | VERTICAL_SCROLLBAR | USE_ALL_HEIGHT); 

     eulaText = new RichTextField("Indicates whether network connectivity is possible. " 
     +"A network is unavailable when a persistent or semi-persistent condition prevents the possibility of connecting to that network. Examples include " 
     +"* The device is out of the coverage area for any network of this type. " 
     +"* The device is on a network other than the home network (i.e., roaming), and data roaming has been disabled. " 
     +"* The device's radio is turned off, e.g., because airplane mode is enabled. ", RichTextField.READONLY | RichTextField.USE_TEXT_WIDTH); 

     okButton = new ButtonField("Ok", ButtonField.FIELD_HCENTER | FOCUSABLE | ButtonField.CONSUME_CLICK); 
     okButton.setChangeListener(this); 

     mainContainer.add(eulaText); 
     add(okButton); 

    } 
} 

이에 도움이 필요합니다.

+0

어떤 시뮬레이터 또는 장치를 테스트 할 수 있습니까? – Swati

+0

이 문제는 970090009550에서 테스트 한 거의 모든 시뮬레이터에 적용됩니다. 장치에서 테스트되지 않음 – amsiddh

답변

0

위임 관리자 (첫 번째 VerticalFieldManager)가 스크롤 할 수 없기 때문입니다. 뷰포트를 이동하여 ButtonField를 표시하지 않습니다.

mainContainer를 제거하고 RichTextField를 팝업 화면에 직접 추가해 보았습니까?

+0

답장 anthony 주셔서 감사합니다, 사실 난 RichTextField mainContainer 수 및 전체 mainuptainer 및 mainContainer botton있을 정적 수있는 mainContainer 경우에만 스크롤 할 수있는 b 수 있습니다. 내가 텍스트를 스크롤 할 때 b 버튼을 스크롤하지 않습니다. 내가 제안한 wht 시도했지만 popupscreen 스크롤 및 단추를 볼 수 없습니다. [귀하의 초보 블랙 베리 개발 책을 통해 지식을 공유해 주셔서 감사합니다 그것은 많은 도움이되었습니다 :)]] – amsiddh

관련 문제