From: SourceForge.net <no...@so...> - 2007-08-24 15:29:39
|
Bugs item #1781138, was opened at 2007-08-24 07:56 Message generated for change (Comment added) made by miesfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=1781138&group_id=119701 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: External Functions Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Jim129 (m129asa) >Assigned to: Mark Miesfeld (miesfeld) Summary: Select(1,1) method sets EntryLines so FirstVisibleLine is 0 Initial Comment: In ooRexx, if I use the Select method of the EditControl class to position my EntryLines screen to 1,1 and then use the FirstVisibleLine method to get the line number, it comes back as 0. If I use the LineScroll method to move down 1 line and then use FirstVisibleLine again, I get line number 1. If I LineScroll 1 more line, FirstVisibleLine returns 2. However, according to the documentation, there is no line 0. ooRexx version is REXX-ooRexx_3.1(MT) 6.01 20 Apr 2007 Windows version is WindowsNT 5.01 ---------------------------------------------------------------------- >Comment By: Mark Miesfeld (miesfeld) Date: 2007-08-24 08:11 Message: Logged In: YES user_id=191588 Originator: NO This is indeed a bug. The ooDialog docs state that the value returned for this method is 1-based. In the Windows API, all indexes are 0-based. In most places ooDialog converts the 0-based index returned from the Windows API to a 1-based index. The other methods in the EditControl do the conversion; this one was apparently missed. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=684730&aid=1781138&group_id=119701 |