From: Straub, P. (Peter) <st...@op...> - 2002-06-10 14:12:12
|
I already saw this suggestion somewhere in the list archives (probably posted by you), but it did not work for me. Forcing the RichEdit control to refresh [$RichEdit->InvalidateRect(0)] restored the contents but at the same time restored it to an unscrolled state (even if the contents had been scrolled). Btw I managed to migrate my application from version 558 to 655 and for me the problems with RichEdit controls persisted :-( Peter -----Original Message----- From: Jonathan Southwick [mailto:jso...@al...] Sent: Montag, 10. Juni 2002 14:31 To: 'per...@li...' Subject: Re: [perl-win32-gui-users] Rich edit: formatted text lost when scrollled What finally worked for me was to add: ## $MainWindow is the window that has my RichEdit control. $MainWindow->InvalidateRect(0); I hope this works for you as well. Jonathan At 6/6/2002 09:56 AM, Straub, Peter (Peter) wrote: >Hi all, > >like other contributors to this list I experienced >refresh problems with rich edit controls (Win32-GUI 558). Everything >displays ok but when the contents is scolled, especially some chars I >add this way: > > $wRichEdit->Select($iOffset, $iOffset+1); > $wRichEdit->ReplaceSel(chr(0x3A)); > $hFormat{-color} = hex("FF0000"); > $wRichEdit->Select($iOffset, $iOffset+1); > $wRichEdit->SetCharFormat(%hFormat); > >I'm afraid I can not recover from this with the "update" solution that >has been suggested so far, at least I'm not aware of any usable event >to trigger it with. > >Anything wrong with my code? >All Suggestions greatly appreciated. Thanks! > >Peter > >P.S.: >I already thought about migrating to 665, but then I >need subclassing to get mouse events from the rich edit controls and >this doesn't seem to work ... ? > >_______________________________________________________________ > >Don't miss the 2002 Sprint PCS Application Developer's Conference >August 25-28 in Las Vegas - >http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink > >_______________________________________________ >Perl-Win32-GUI-Users mailing list >Per...@li... >https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ Perl-Win32-GUI-Users mailing list Per...@li... https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users |