Dark Mode ListBox is Black, Not Grey

  1. 3 months ago

    Stephen D

    Jul 9 Pre-Release Testers, Xojo Pro

    -image-

    Is it intentional that the listbox is pure black rather than matching the background of the window?

    Must I override all CellBackgroundPaint to get it to match the window color?

    Try in CellBackgroundPaint:

    g.ClearRect(0, 0, g.Width, g.Height)

  2. Markus W

    Jul 9 Pre-Release Testers Answer #JeSuisHuman New Zealand, Auc...
    Edited 3 months ago

    Try in CellBackgroundPaint:

    g.ClearRect(0, 0, g.Width, g.Height)

  3. Stephen D

    Jul 9 Pre-Release Testers, Xojo Pro

    Yup. That'll do it! :)

  4. Alberto D

    Jul 9 Pre-Release Testers
    Edited 3 months ago

    @Stephen D Is it intentional that the listbox is pure black rather than matching the background of the window?

    In light mode is your listbox the same white than the background of the window? I guess if they match in light mode they should match in dark mode.

  5. In light mode, the listbox is snow-white by default, but with this hint added, it looks better.

  6. Stephen D

    Jul 11 Pre-Release Testers, Xojo Pro

    You'll find the applying clearRect to the paint event of contain controls and canvases will also help!

or Sign Up to reply!