Re: [UFO-devel] UTextEdit reacting strangely
Status: Beta
Brought to you by:
schmidtjf
From: Johannes S. <sch...@us...> - 2006-04-28 17:44:44
|
Hi Elie, On Friday 28 April 2006 18:16, Elie `woe` BLETON wrote: [...] > Offset should be adjusted on the displayed text start instead of the > absolute text start, but isn't for some reason. I wasn't able to find the > displayed text start (should be a "line offset"). If I knew where to find > it, I think I could probably patch this in order to get the mouse selection > work probably. > Please note that the (only) way I change the displayed text start is to add > enough text in the TextEdit, then move the caret down using arrow keys. This is entirely done in src/ui/ubasicstyle.cpp line 873 to 881. Here, the required offset is computed. But so far, you don't have a way to retrieve that value. I'd really like to remove this piece of code as it's really messy. Probably a scroll pane should work. Otherwise an entirely new solution should be considered. > I don't understand how the text manages to scroll correctly when the caret > moves. I'm looking for some more insight, since I spent already most of the > day crawling in the code without much success. > > Side note: In utextlayout.hpp, line 50, shouldn't "public" be "private". > Writing "public" twice doesn't issue a warning, but what's the point in > writing property-like methods if the members are publicly available. Thanks. Well, historically issues (as always). This used to be a struct ... The text API is still a subject to change ... Regards, Johannes |