Re: win32lib: Weird problems out of the blue.
- Posted by Mario Steele <eumario at trilake.net> Jun 07, 2005
- 497 views
Anando Banerjee wrote: > Thanks Mario, > > While Derek ponders on this, let me just add to the knowledge base. My program > is currently > spread out over 28 files (other than Win32lib, EUGrid, etc.) with approx > 19,600 lines > of code so far. I am using RichEdit in about 17 places to display on-screen > reports > (basically print previews). I have recently found a better way to do this with > Bitmap > and bitBlt but would still like to see a better RichEdit. As of now, when I > try to > output anything directly to RichEdit, the display appears and disappears in a > flash > leaving a blank RichEdit box (no error messages). So, I use a temporary > variable to > design the page with "\n" "\t" etc. and then setText the variable to RichEdit > to get > a final display. Shoddy method, I agree, but could not find a better way till > I found > Bitmap and bitBlt. (Any suggestions from anybody for something even better?) > > At present, I am converting all my RichEdit previews to Bitmap previews but, > like I > said, why not an error-free RichEdit anyway? > > Hope this helps. > > Regards. > Anando > Which method are you using to store the text into the RichEdit? Are you using setText(), or are you using appendText()? appendText() will append the text to the RichEdit, and shouldn't make anything dis-appear. setText() is basically clearing everything in the RichEdit, and storing the new text in it, as a clean sheet basically. One thing I would suggest to you though, is to check and see which version of RichEdit Win32lib is linking to, and weither or not, you have 2 versions of RichEdit installed on your computer. Cause some of these problems sound as though something I encountered with RichEdit 1.0, which wasn't as sophisticated as RichEdit 2.0 or 3.0 for that matter. And some of the RichEdit structures have been known to not work properly with RichEdit 1.0. Just some things for you to check. I'd check myself, but Unfortunatly, I'm on Linux now, and don't deal much with Windows anymore. Mario Steele http://enchantedblade.trilake.net Attaining World Dominiation, one byte at a time...