Recent

Author Topic: Flickering in TsWorksheetGrid  (Read 3631 times)

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 594
    • Double Dummy Solver - free download
Flickering in TsWorksheetGrid
« on: March 16, 2017, 08:05:29 pm »
Sorry to bring up an old problem  :( as I know there have been several threads about Flickering with apps running under Windows. I tried to apply some of the solutions with other components (e.g. ListView) but have not been able to apply them to my TSWorksheetGrid. Every time I move the mouses the text and cell border lines flicker. Is there any solution?

I consistently get compilation errors with a solution like http://forum.lazarus.freepascal.org/index.php/topic,32909.msg212424.html#msg212424

This gets a compilation error due to incorrect number of parameters, even though it sure seems like I have the correct number and type.

Code: Pascal  [Select][+][-]
  1. Result := CallWindowProc(PrevWndProc, Ahwnd, uMsg, WParam, LParam);

Anyone have a solution to flickering with the TSWorksheetGrid?

Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Flickering in TsWorksheetGrid
« Reply #1 on: March 16, 2017, 09:56:42 pm »
Please post a sample project demonstrating this issue. I've never seen flicker just by moving the mouse across the grid.

Noodly

  • Jr. Member
  • **
  • Posts: 70
Re: Flickering in TsWorksheetGrid
« Reply #2 on: March 16, 2017, 11:10:08 pm »
I've just upgraded from 1.6.2 to 1.6.4 (Win 7) and if I select File|Close All then the menu bar flickers like mad?
Windows 10 Home, Lazarus 2.02 (svn 60954), FPC 3.04

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Flickering in TsWorksheetGrid
« Reply #3 on: March 16, 2017, 11:30:17 pm »
This has been fixed a few days ago: http://bugs.freepascal.org/view.php?id=30760

But this is not the same kind of flicker that the OP reports, isn't it?

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 594
    • Double Dummy Solver - free download
Re: Flickering in TsWorksheetGrid
« Reply #4 on: March 16, 2017, 11:56:55 pm »
When I create a sample project to display the problem - it doesn't exist! What types of problems could lead to flickering?
Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Flickering in TsWorksheetGrid
« Reply #5 on: March 17, 2017, 12:03:48 am »
No idea. It just doesn't flicker with me (except for some occasional flicker of the grid outer border, but it is hardly seen). What are you doing in the grid? Are you using some own code to paint in the grid? When you run any of the visual examples or Spready, do they flicker? Spready is here: https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/applications/spready/
« Last Edit: March 17, 2017, 12:40:40 am by wp »

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 594
    • Double Dummy Solver - free download
Re: Flickering in TsWorksheetGrid
« Reply #6 on: March 17, 2017, 12:29:14 am »
I'm filling the grid with lots of WriteText statements and also  WriteFontStyle, WriteFontColor, etc. I also have some  thick line boarders around a few cells; they flicker the most noticeably, although flickering is also noticeable in other plain text cells. This flickering grid is on a form that's included in a much larger app. BUT, when I create a stand alone app with a simple (one button) main form and just the grid form, the grid text is solid as a rock!!  In the process of creating this "simple" example, I've proven to myself that the problem is definitely a bug I've injected into the program. Hope I find it. Thanks for your help.

Lazarus 3.0RC2, FPC 3.2.2 x86_64-win64-win32/win64

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Flickering in TsWorksheetGrid
« Reply #7 on: March 17, 2017, 12:41:17 am »
Please let us know when you find it.

Noodly

  • Jr. Member
  • **
  • Posts: 70
Re: Flickering in TsWorksheetGrid
« Reply #8 on: March 17, 2017, 12:43:02 am »
@WP
Not related to the OP.

Just a coincidence that I saw this topic and found the Close All issue at the same time.

Beware coincidences :-)

Noodly
Windows 10 Home, Lazarus 2.02 (svn 60954), FPC 3.04

 

TinyPortal © 2005-2018