wxTextCtrl unexpected scoll Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Lamego
Earned some good credits
Earned some good credits
Posts: 101
Joined: Wed Jun 29, 2005 10:13 pm
Location: Portugal
Contact:

wxTextCtrl unexpected scoll

Post by Lamego » Sun Nov 06, 2005 3:10 pm

Hello,
I am using a text ctrol created with the following properties:

Code: Select all

    m_chat = new wxTextCtrl(this, wxID_ANY, _(""), wxDefaultPosition, wxDefaultSize,
      wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH2 | wxTE_AUTO_URL );
Compiled and running on linux (wxGTK) when a new line is appended to the window it behaves as I expect, it just keeps the new text on the bottom after scrolling wihout any side effects.
On Windows (wxMSW) when the text control gets full, at each new message the window is entirely scrolled up so that the text control visible area gets empty.

Any idea on how to resolve this ? (

I can try to resrcoll the window after appending the text, to make all the last text visible, but eventually there is a way to set the same behavior that I have with wxGTK ...
wxMSW 2.6.3 - GCC 3.4.2 (MinGW/MSYS)
wxGTK 2.6.3 - GCC 4.02 (Ubuntu)
Code::Blocks Win/Lin
PTlink Tech Admin
PTlink Chat Software Lead Developer
http://software.pt-link.net

sethjackson
Super wx Problem Solver
Super wx Problem Solver
Posts: 396
Joined: Wed Oct 05, 2005 1:19 am

Post by sethjackson » Sun Nov 06, 2005 6:31 pm

You might try taking out wxTE_RICH2. I have a text control that doesn't have this flag and it works just fine.

Lamego
Earned some good credits
Earned some good credits
Posts: 101
Joined: Wed Jun 29, 2005 10:13 pm
Location: Portugal
Contact:

colors

Post by Lamego » Mon Nov 07, 2005 9:09 am

I need colors on the text according to different events so I do need rich text. If I am unable to resolve this I will switch to a html windor or move to a list control (picture+text).
Altough I have several options to change the control I would like to understand/resolve this problem, I may need to use it later on another program.
wxMSW 2.6.3 - GCC 3.4.2 (MinGW/MSYS)
wxGTK 2.6.3 - GCC 4.02 (Ubuntu)
Code::Blocks Win/Lin
PTlink Tech Admin
PTlink Chat Software Lead Developer
http://software.pt-link.net

leio
Can't get richer than this
Can't get richer than this
Posts: 802
Joined: Mon Dec 27, 2004 10:46 am
Location: Estonia, Tallinn
Contact:

Post by leio » Mon Nov 07, 2005 10:35 am

Or you might consider making sure that the sf.net bug tracker knows about this...
Compilers: gcc-3.3.6, gcc-3.4.5, gcc-4.0.2, gcc-4.1.0 and MSVC6
OS's: Gentoo Linux, WinXP; WX: CVS HEAD

Project Manager of wxMUD - http://wxmud.sf.net/
Developer of wxGTK;
gtk+ port maintainer of OMGUI - http://www.omgui.org/

chris
I live to help wx-kind
I live to help wx-kind
Posts: 150
Joined: Fri Oct 08, 2004 2:05 pm
Location: Europe

Post by chris » Tue Nov 08, 2005 10:09 am

Hi,

that bug has been reported for nearly three years:

http://sourceforge.net/tracker/index.ph ... tid=109863.

I've been running into this, too. The suggested ScrollLines(-1) workaround doesn't work for me neither.

Chris
this->signature=NULL;

Post Reply