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 3818 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