Redraw issues [SOLVED] lazarus / 13-General ---------------------------------------------------------------------- craigTheBrit ยท 2007-12-08 18:45 I have a custom-drawn Listbox on my form with a Combobox brother (i.e. they share a parent Panel) that always positions itself where the selection is in the Listbox. On Delphi this used to work fine, but now a problem arises when one scrolls the Listbox too fast or scrolls so that the Combobox disappears from sight either above or below - it breaks the redrawing of not only both of the controls already mentioned but many of the others on the Form, and even the Form itself... One thing I've noticed is that you have to be careful in Lazarus/FP with BrushStyle... if you don't remember to set it back to bsSolid after using bsClear things can go a bit crazy, but I don't believe this is the problem here. Has anyone else had problems with a Listbox set to lbOwnerDrawFixed or lbOwnerDrawVariable, with or without helper controls (in a Property Editor sort of style)? Edit: There were two issues with my program. I'm unsure about the cause of the first, which was where scrolling an owner-draw listbox with a combobox following the selection would cause the drawing to break - it was resolved by putting the combobox inside a TPanel, and moving the panel instead. The cause of the second problem, where the entire form would lose the ability to redraw itself seems to be one line of code that refreshed a list while the form was hidden. This might be because of the way my program works, and I've been unable to replicate the problem concisely, but I'd advise anyone having redrawing issues to check that they're not doing unnecessary graphics work on windows that aren't showing, if showing them will cause that work to be done anyway =).