Hi, my name's Mark and I've been lurking for a long time in this forum to my lasting shame. I'm currently involved in a mobile IM and chat project that has enjoyed moderate success here in my country. We also have a desktop version of our app made in wxWdigets and I hope to rewrite the whole stuff in U++ from the ground up. So far i've managed to do fairly well resulting to this:
My question is this: My chat and IM views use the RichTextView controls and I need to scroll down to the very bottom every time a new message comes up only IF the view is already scrolled down to the bottom. If the user is viewing some back messages or he is not currently scrolled to the very bottom, the view should only scroll down to where the he was at before the new message came. I did this but I'm not satisfied because sometimes the view still scrolls one line down when it's not at the bottom: