[haiku-3rdparty-dev] Re: Drawing issue of BListItems

  • From: "Humdinger" <dmarc-noreply@xxxxxxxxxxxxx> (Redacted sender "humdingerb" for DMARC)
  • To: haiku-3rdparty-dev@xxxxxxxxxxxxx
  • Date: Sat, 17 Nov 2018 17:40:36 +0100

On 17/11/2018, Rene Gollent <anevilyak@xxxxxxxxx> wrote:

One thing I just noticed... In the code in GitHub, you're calling Hide() on
the filter view directly...I believe you're not supposed to do that in
layout land, instead you need to get the view's layout item and call
SetVisible(false) on it. That could potentially be causing some drawing
havoc.

Thanks for the hint. I did Hide() the pause checkbox before with no
issues, but have now changed the code accordingly. Not sure I did it
optimally, see [1]... :)

Still, the drawing isssues are the same...
How would I force a BListView to redraw itself?
fFavorites->Invalidate(); doesn't seem to do it...
-- 

Regards,
Humdinger

[1] https://github.com/humdingerb/clipdinger/blob/filter/MainWindow.cpp#L683

--
Help translating 3rd party Haiku applications
Go to https://i18n.kacperkasper.pl

Other related posts: