Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SectionStack - use redraw() instead.

    hello,

    I can not find an answer to my problem on the forum, so I can write this post.

    My problem is related to SectionStack. Indeed, I view a layout that contains two members, one of them is a SectionStack. the compounds are SectionStackSection Label.

    When I want to hide or display a SectionStackSection a WARN message appears:

    drawing: isc_IButton_2_label: draw () called widget is drawn With current state: complete, use redraw () instead.

    I really do not know what to do to solve my problem, can you help me? I think I have trouble building my SectionStack.


    Code:
    final Layout layoutMessages = createItem.layout(false, "v", "100%", "100%", 0, 0);
    final SectionStack sectionStack = new SectionStack();  
    sectionStack.setVisibilityMode(VisibilityMode.MUTEX);  
    sectionStack.setWidth100();
    sectionStack.setHeight100();
    sectionStack.setCanSelectText(true);
    rpcMessageUser.getNewMessageByUser(sessionUser, new AsyncCallback<LinkedList<ZMessage>>(){
    	@Override
    	public void onSuccess(LinkedList<ZMessage> result) {
    		for (ZMessage message : result){
    			SectionStackSection  section1 = new SectionStackSection ();
    			section1.setTitle((message.getZmessage_object()));
    			section1.setExpanded(true);  
    			section1.setResizeable(false);
    			section1.addItem(createItem.label(message.getZmessage_contents()));  
    			section1.addItem(createItem.IButton(messages.MessagesRead()));
    			sectionStack.addSection(section1);	
    		}
    		layoutMessages.addMember(sectionStack);
    	}
    	@Override
    	public void onFailure(Throwable caught) {
    		....	
    	}        	
    });
    layoutGlobal.addMember(layoutMessages);
    thank you in advance and sorry for my English.
    François
Working...
X