[Win32Lib] weird RichEdit problem
- Posted by "danielmoyer" <danielmoyer at prodigy.net> Sep 06, 2004
- 504 views
I'm trying to develop an application alternately on a laptop & a desk pc, but a part of the app doesn't run correctly on the desktop, though it runs just fine on the laptop. The two systems are both running Eu 2.3 & Win32Lib 59.01 for the app, and the only difference I can see between them is that the desk pc has Windows 98 1st ed, & the laptop has Windows 98 2nd ed. The relevant parts of the program are these: 1. a listbox & a richedit; 2. clicking on an item in the list causes "stuff" to be loaded into the richedit; some items cause a lot of stuff to be loaded, others just load a little; in all cases the stuff loaded contains at least the item from the list, with some elaboration; 3. after the stuff is loaded into the richedit, it is searched for the item that was clicked on from the list, & when found it is "selected" (hilighted) in the richedit, & if the stuff in the richedit was really big, the richedit automagically pages down to the "selected" item. The problem is this: All of the above *happens* on the laptop; but on the desk pc, for one large "page" of stuff in the richedit, the *selection* & page movement only happens down to some particular item. The item which is the start of the problem is at character #32787 in the richedit. All items at & after that one do NOT select (hilite) anything, & moves down to show the end of the "page" of text. (And if I look back up to where that item would be in the richedit, it is not selected.) Since that character count number, 32787, looks suspiciously like a boundary limit in the richedit, I'm wondering if that is somehow the culprit, & if so, what I can do to fix it? All the text SHOWS in the richedit, it's just that some found "lines" don't get selected as they should. TIA, Dan Moyer