[solved] Problem with the "Prev Bookmark" |
Post Reply |
Author | |
Matsu
Newbie Joined: 04 October 2016 Status: Offline Points: 7 |
Post Options
Thanks(1)
Posted: 04 October 2016 at 4:18am |
I'm using ToolkitPro v 17.2 with VisualStudio 2010.
At MDITextEditor.exe in sample. After open the 100 lines text file, set some book mark(1 line,10 line,20 line,50 line and 90 line),select the last line and click "Prev Bookmark " button then the carret can be moved 10 line, 20 line, 50line and 90 l ine but can't be moved 1 line. Thanks. |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello Matsu,
Thank you for information. Problem in method CXTPSyntaxEditCtrl::PrevBookmark(). I also found issue with CXTPSyntaxEditCtrl::NextBookmark() - if cursor is in some invisible top line (but with bottom lines works fine) then it start searching next bookmark from first visible line. I have added this issue to our bugs base. Regards, Oleksandr Lebed |
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello Matsu,
I'm finally finish this task! Problem was in changing range of return values of method CXTPSyntaxEditCtrl::CalculateVisibleRow() some time ago. PrevBookmark() and NextBookmark() expected negative values for rows which are before visible rows. After changes there no difference between first visible row (relative number '1') and any row which higher than first visible row - CalculateVisibleRow() returns also '1'. I have found out that only PrevBookmark() and NextBookmark() need these negative values, so we need to add new method.
Also as you can see in new CalculateVisibleRow_() I have fixed navigation by bookmarks when bookmark within collapsed block. Before this cursor was set under collapsed block, not on it's own line. Unfortunately I'm not sure that this fix will be included in the nearest release. Regards, Oleksandr Lebed |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |