Frank Millman wrote:
Stef Mientki wrote:
thanks Frank,
but that doesn't solve the problem
cheers,
Stef
Hi Stef
My test program was not very realistic, as all lines were appended during
the __init__() method, so you could not see the effect visually.
I have modified it so that the lines are appended after the frame is set up,
so now you can see the lines being appended.
thanks Frank,
it costed me some trouble to find the source of the problem,
but your program was a great help with that.
Can you modify my program to reproduce the problem that you are seeing, and
post it back here. I am sure that someone will then be able to help.
Attached the modified program with the problem.
It seems to be the combination of:
+ textctrl in RICH or RICH2 mode
+ textctrl on a splitter (vertical or horizontal)
that's causing the problem.
I hope someone knows a solution,
otherwise I'l skip the RICH,
which might be a good idea afterall,
because it's only supported under windows ?
thanks,
Stef
fm39.py (1.96 KB)
路路路
BTW, I ran my program without the line
'self.ShowPosition(self.GetLastPosition())', and it still works, on GTK2 and
MSW, so it seems that it is not necessary.
Frank
------------------------------------------------------------------------
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Stef Mientki wrote:
thanks Frank,
it costed me some trouble to find the source of the problem,
but your program was a great help with that.
> Can you modify my program to reproduce the problem that you are
> seeing, and post it back here. I am sure that someone will
then be able to help.
>
>
Attached the modified program with the problem.
It seems to be the combination of:
+ textctrl in RICH or RICH2 mode
+ textctrl on a splitter (vertical or horizontal)
that's causing the problem.
I had a quick look. As you say, if you remove the TE_RICH style, it works.
I am afraid I am out of my depth here. It will have to wait for someone more
knowledgeable
Frank
thanks Vlasta,
that's a perfect workaround !!
cheers,
Stef
Vlastimil Brom wrote:
路路路
Hi,
some time ago I found the following by accident, maybe it can help a bit ...
I also noticed such behaviour of AppendText on richtext style text controls (not necessarily with splitter). It might be somehow connected with scrolling updates (the view of the text gets fixed after you click on scrollbar, even if any scrolling in that direction isn't possible).
if you modify your posted script fm39.py so that the updateLog function contains:
self.t.AppendText(line)
self.t.ScrollLines(-1)
it seems to work fine (for me on win XPh); I'm not sure, if such a hackish fix is acceptable, maybe some more appropriate solution in this direction could be used...
HTH,
Vlasta
------------------------------------------------------------------------
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users