Page 1 of 1

[Solved]rendering problem of scrollable windows(my mistake)

Posted: Fri Oct 09, 2009 09:53
by valvalval
I already mentioned about a problem of scrollable pane(actually, i don't know, it is a bug or not)

not only scrollable pane, also listbox has a similar problem.

despite text-item is added to listbox, it doesn't render its list.

it renders its list after scrolling and clicking by, like scrollable case.


maybe ah,,, cegui render doesn't recognize a need of redrawing.

Re: redering problem of scrollable windows.

Posted: Fri Oct 09, 2009 11:00
by CrazyEddie
I already mentioned about a problem of scrollable pane(actually, i don't know, it is a bug or not)

I've not looked into this yet, but it's on my list.

I'm not aware of any issues with the listbox. What would be useful is if you specified the exact arrangement of windows needed to reproduce these issues - specifically which (if any) windows have texture backing. I don't have the time to test every possible combination of options for all window and widget types, so when reporting these issues you must give detailed information as to how to reproduce the issues (that is, if you want the to get fixed!)

Thanks,

CE.

Re: redering problem of scrollable windows.

Posted: Sat Oct 10, 2009 06:19
by valvalval
OK :) , I really want to get if fixed, so I'll post it ASAP.

with Picture :p

Re: redering problem of scrollable windows.

Posted: Mon Oct 12, 2009 03:01
by valvalval
1. Hierarchy

+ ChattingWindowBack(StaticImage) (parent)
- ChattingHistory(Listbox) (child1)
- EditBox(EditBox) (child2)

2. ChattingHistory's state.
- deactivated.(focus is on a another window)

3. problem.
- it works out, on app that I'm playing.
but, when multiplaying, my app's chatting histroy is being updated correctly,
other app(other PC)'s chatting histroy is not being updated.

then, I activated chatting history(on code by manually, using activate()), so it is updated correctly.

sometimes, control(like Listbox, scrollable pane) doens't know a need of redrawing.

you can test this with 2 same listbox.
like this below

http://cfile2.uf.tistory.com/image/186186174AD29C5860D44C

Re: redering problem of scrollable windows.

Posted: Mon Oct 12, 2009 08:59
by CrazyEddie
Ok, thanks. I'll run a couple of tests.

Re: redering problem of scrollable windows.

Posted: Mon Oct 12, 2009 10:50
by CrazyEddie
I have tested this, and it appears fine - I made a video of the test I ran, in order to demonstrate my results...



CE.

Re: redering problem of scrollable windows.

Posted: Mon Oct 12, 2009 11:27
by valvalval
hm, yeah, your test works well..hm..

-_- my case is not equal to record video of my app, because it is a problem between two physical PC.

(chatting text is updated by receving a chat-packet)

but, I'm going to find out that reason :)

thx CE.

if I know it, I'll tell you.

Re: redering problem of scrollable windows.

Posted: Mon Oct 12, 2009 19:06
by CrazyEddie
Is it the same code invoked to add a 'local' message that is invoked to add a 'remote' message? If not this may indicate where to look (and consider refactoring to use use same code path for both).

I can't really think of much else to suggest, after all, it's a case of 1) add item, 2) ensure item is visible. What can go wrong, right?! :)

If you do find the issue in your own code, please do let us know what that was :D

CE.

Re: redering problem of scrollable windows.

Posted: Tue Oct 13, 2009 00:35
by valvalval
oh god, I really really sorry.

I found my mistake. :hammer:

-_-... Ah, my script code nullified a target window(listbox)..

I made your time waste.



I apologize that. I regarded this as a case of scrollable-pane.
I should have made it sure.

I wish you to not spend much time for this.
for self-reflection, not delete this thread. haha.
=_=);;

ah, but scrollable-pane is true ! :lol:
and I really thank your visual-aid.

ps. if our game is released(next year), it must include 'CEGUI' logo.

Re: [Solved]rendering problem of scrollable windows(my mistake)

Posted: Tue Oct 13, 2009 11:21
by CrazyEddie
Don't worry too much - it's easy to be convinced the issue lies elsewhere sometimes :)

With regard to scrollable-pane, as stated in the other thread, I have no idea what's going on there with regards to content not showing. However, there exists another issue in Scrollable pane that I'm looking into at the moment (not a visual issue: but it seems under certain circumstances, content that was initially out of the view pane is non-interactive when scrolled into view).

CE.