Recent

Author Topic: [SOLVED]SynEdit not support Repaint  (Read 3809 times)

Borneq

  • Full Member
  • ***
  • Posts: 248
[SOLVED]SynEdit not support Repaint
« on: May 02, 2012, 08:12:14 am »
I have ListView1 and SynEdit. On ListView1Change new text is loaded to SynEdit. I press key arrow up or down and move to next position of ListView. It is small problem, because text in SynEdit is not refreshed until I release key arrow.
Note that after loading text to SynEdit is not Invalidate but Refresh or Repaint (what is a difference?) which should be immediately. Memo1 is refreshed after Repaint but Synedit call TCustomSynEdit.Paint only when is moment of free time when I release key arrow.
« Last Edit: May 02, 2012, 02:41:06 pm by Borneq »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9870
  • Debugger - SynEdit - and more
    • wiki
Re: SynEdit not support Repaint
« Reply #1 on: May 02, 2012, 11:23:06 am »
As a workaround call

uses LCLIntf;

      UpdateWindow(SynEdit1.Handle);

I'll need to work out why it was disabled...


Please note, if you are in
  Synedit.BeginUpdate/EndUpdate
it will *not* refresh.
« Last Edit: May 02, 2012, 11:28:28 am by Martin_fr »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9870
  • Debugger - SynEdit - and more
    • wiki
Re: [SOLVED]SynEdit not support Repaint
« Reply #2 on: May 02, 2012, 03:41:52 pm »
Fixed in Rev 37135

 

TinyPortal © 2005-2018