2025-01-10 10:15 UTC+0100 Aleksander Czajczynski (hb fki.pl)

* src/rtl/listbox.prg
    * merged #371 from Kamil, thanks for the patch.
      Applied minor reformat .NOT. -> ! and added a comment
      about buggy ListBox:hitTest() on no-box dropdown in
      Cl*pper 5.3.
This commit is contained in:
Aleksander Czajczynski
2025-01-10 10:15:24 +01:00
parent d210b77c23
commit bdc240ed99
2 changed files with 11 additions and 1 deletions

View File

@@ -7,6 +7,13 @@
Entries may not always be in chronological/commit order.
See license at the end of file. */
2025-01-10 10:15 UTC+0100 Aleksander Czajczynski (hb fki.pl)
* src/rtl/listbox.prg
* merged #371 from Kamil, thanks for the patch.
Applied minor reformat .NOT. -> ! and added a comment
about buggy ListBox:hitTest() on no-box dropdown in
Cl*pper 5.3.
2025-01-09 12:00 UTC+0100 Kamil Przybylski (kprzybylski quay.pl)
* src/rtl/listbox.prg
! fixed nTop not being incremented in ListBox:hitTest() for no-box dropdown

View File

@@ -412,7 +412,10 @@ METHOD hitTest( nMRow, nMCol ) CLASS ListBox
nTop++
ENDIF
IF ::lIsOpen .AND. .NOT. Empty( ::cHotBox + ::cColdBox )
/* NOTE: Harbour extension over Cl*pper abilities, CLP5.3
with mouse support will crash, RTE "Argument Error: +"
when a borderless listbox/dropdown is mouse-clicked */
IF ::lIsOpen .AND. ! Empty( ::cHotBox + ::cColdBox )
nOffset := 1
DO CASE