Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Horizontal scroll in ListBox doesn't update  (Read 4978 times)

OS923

  • 512 MB
  • *****
  • Posts: 888
Horizontal scroll in ListBox doesn't update
« on: October 02, 2020, 09:05:21 AM »

I have a ListBox in REALbasic with a custom background and custom text. If I scroll horizontally by clicking in the arrows, then it draws correctly, but if I scroll to the right by clicking in the gray area, then it updates only the last row and only if you see it only partially. I checked it: there's no CellBackgroundPaint or CellTextPaint event for those rows.
Logged

OS923

  • 512 MB
  • *****
  • Posts: 888
Re: Horizontal scroll in ListBox doesn't update
« Reply #1 on: October 06, 2020, 11:15:24 AM »

If you make a scrollbar instead of setting ScrollBarHorizontal to true then you can use the ValueChanged event to do your own update. I did this by setting cellType to normal for every row. This causes a refresh.
Logged
Pages: [1]   Go Up

Recent Topics

[Mac OS 9, Hacks & Upgrades] USB 2.0 DRIVER ***EARLY BETA*** by Daniel Yesterday at 04:46:41 PM
[Software] A converter for old Mac OS documents by emendelson Yesterday at 03:32:55 PM
[Software] MacSurf by IIO Yesterday at 02:44:17 PM
[New Member Welcome] hello!! by Michal Craig Yesterday at 01:24:55 AM
[Software] Old document sample files? by emendelson July 21, 2026, 05:50:27 PM
[Mac OS 9, Hacks & Upgrades] NEW: Temperature Monitor control strip for G4 MDD by UnexpectedBomb July 21, 2026, 11:15:55 AM
[Development & Programming] USB 2.0 for 9 by IIO July 21, 2026, 08:05:16 AM
[Hardware] Wanted: Kyma Software for OS 9 by IIO July 21, 2026, 03:48:51 AM