Recent

Author Topic: Progress bar in stringgrid  (Read 15226 times)

dseligo

  • Hero Member
  • *****
  • Posts: 1221
Re: Progress bar in stringgrid
« Reply #30 on: July 18, 2021, 06:07:34 am »
you guys don't notice the incorrect displays of chars here ?

I pasted code in Lazarus (2.0.10 and 2.0.12) and it looks even stranger. But when executing program it looks fine (Windows 10).

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: Progress bar in stringgrid
« Reply #31 on: July 18, 2021, 10:12:08 am »
Hi!

I can't check the Windows 10 issue but it looks like this:

There is a bug in the Monotype font used by the IDE.
As this font is not used in the app there is everyhing ok.

Workaround: Use another monospaced font in the IDE.
Liberation Mono  is gentle to your eyes.

Winni

dseligo

  • Hero Member
  • *****
  • Posts: 1221
Re: Progress bar in stringgrid
« Reply #32 on: July 18, 2021, 02:35:48 pm »
Workaround: Use another monospaced font in the IDE.
Liberation Mono  is gentle to your eyes.

Same thing with Liberation Mono. I tried Source Code Pro and it shows correctly.  8)

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: Progress bar in stringgrid
« Reply #33 on: July 18, 2021, 07:11:27 pm »
Hi!

Tested with different fonts including Liberation Mono on:

* Libre Office Writer
* Kate
* joe in a konsole

everything fine with Linux.

Also fine with Win7.
So it seems to be a Win10 problem.

Winni

Tony Stone

  • Full Member
  • ***
  • Posts: 219
Re: Progress bar in stringgrid
« Reply #34 on: July 21, 2021, 02:00:47 am »
Just stick with the Custom Draw code...

If you need a little demo I can provide, because I am just one of those guys!  ::)

So I just found an issue in the code I put together with these examples here.  I am seeing odd behavior... If i have a process running that is updating the progress, then i resize my form it starts drawing the progressbar in every single cell of that column... any ideas where i should start with troubleshooting this issue?

 

TinyPortal © 2005-2018