468,296 Members | 1,309 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,296 developers. It's quick & easy.

problem with wxtextctrl

hi , i have a problem with a wxtextctrl with multiline option.
i want to write a file , line after line , in my wxtextctrl .
But my file is too longer , and the wxtextctrl can't write the end of
the file , i miss 100 lines of my file ...
What can i do to have all data file ?

what library can i use to replace wxtextctrl ?

thanks
sylvain
----
Bonjour , j'ai un problème avec un wxtextctrl , j'ai un fichier qui
dooit être trop long pour la mémoire d'un wxtextctrl donc les 100
dernières lignes du fichier n'apparaissent pas .
Comment puis je faire ?
dois je changer de methode ?

merci
sylvain
Jul 18 '05 #1
3 1650
Have you tried: wxtextctrl::SetMaxLength()
with parameter 0?

he*******@yahoo.com (hellprout) wrote in message news:<5b**************************@posting.google. com>...
hi , i have a problem with a wxtextctrl with multiline option.
i want to write a file , line after line , in my wxtextctrl .
But my file is too longer , and the wxtextctrl can't write the end of
the file , i miss 100 lines of my file ...
What can i do to have all data file ?

what library can i use to replace wxtextctrl ?

thanks
sylvain
----
Bonjour , j'ai un problème avec un wxtextctrl , j'ai un fichier qui
dooit être trop long pour la mémoire d'un wxtextctrl donc les 100
dernières lignes du fichier n'apparaissent pas .
Comment puis je faire ?
dois je changer de methode ?

merci
sylvain

Jul 18 '05 #2
hellprout wrote:
hi , i have a problem with a wxtextctrl with multiline option.
i want to write a file , line after line , in my wxtextctrl .
But my file is too longer , and the wxtextctrl can't write the end of
the file , i miss 100 lines of my file ...
What can i do to have all data file ?


If you are on Windows then add the wxTE_RICH style when constructing the
wxTextCtrl. This will switch to a native control that can handle more
than 64k of text.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Jul 18 '05 #3
Thanks the option wxTE_RICH is the solution

thanks a lot

and let's go python

sylvain

Robin Dunn <ro***@alldunn.NOSPAM.com> wrote in message news:<sT***************@fe07.usenetserver.com>...
hellprout wrote:
hi , i have a problem with a wxtextctrl with multiline option.
i want to write a file , line after line , in my wxtextctrl .
But my file is too longer , and the wxtextctrl can't write the end of
the file , i miss 100 lines of my file ...
What can i do to have all data file ?


If you are on Windows then add the wxTE_RICH style when constructing the
wxTextCtrl. This will switch to a native control that can handle more
than 64k of text.

Jul 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by RJS | last post: by
reply views Thread by fowlertrainer | last post: by
2 posts views Thread by Tim | last post: by
3 posts views Thread by Russ Phillips | last post: by
2 posts views Thread by Nicolas Pourcelot | last post: by
reply views Thread by austin | last post: by
reply views Thread by alyph | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.