Re: TStringGrid.DrawCell - Not Updating The Correct Cell



Actually I never could figure out how to do it through code. I finally
ended up using two grids. One was visible and the other invisible.
Instead of scrolling the visible grid I scrolled the invisible grid
instead and did a TextOut to paint the invisible grid's text contents
to the visible control. That way the visible control never actually
scrolled but it looked like it did as the TextOut updated its
appearance. Voila... the center "highlighted" cell never actually moved
and so I got no ghosting.

.



Relevant Pages

  • Re: How to debug a compiled exe
    ... I killed all DoEvents and replaced them with Sleep where necessary. ... My problem was that I was doing long doevent loops in which the app could do other things that it wanted to do. ... You can click on a cell in the grid, ... While it was still scrolling, ...
    (microsoft.public.vb.general.discussion)
  • Re: TStringGrid.DrawCell - Not Updating The Correct Cell
    ... Instead of scrolling the visible grid I scrolled the invisible grid ... By telling it to refresh all the cells you are generating quite a lot ... This message sets or clears the redraw flag. ...
    (comp.lang.pascal.delphi.misc)
  • Re: SplitScreen
    ... that uses PictureBox controls for the divider bars, ... eliminates a few controls. ... A question on the synchronized scrolling - it appears that a FlexGrid will ... I want to use a single scrollbar (on grid 3) without others showing ...
    (microsoft.public.vb.controls)
  • Re: APP behaves differently in IDE vs EXE
    ... The app is using the dbgrid32 control as an unbound grid. ... Since I've added the line to set the bookmark property to ... scrolling issue, I'd appreciate hearing them. ...
    (microsoft.public.vb.general.discussion)
  • Re: Forcing datagrid to expand horizontally instead of vertically
    ... Teemu Keiski ... up way too much horizontal space. ... Is there a way to limit the height of the grid or of the rows ... I've seen some examples of using divs with scrolling, ...
    (microsoft.public.dotnet.framework.aspnet)