Recent

Author Topic: Problem with Spktoolbar blinking  (Read 1177 times)

danielaemtranse

  • Newbie
  • Posts: 4
Problem with Spktoolbar blinking
« on: March 09, 2025, 02:07:21 am »
Help me!

I use SpkToolbar (version 0.1.8) on Windows 11.

When I move the mouse over the buttons, the whole component blinks, I don't have this behavior on Ubuntu.




Zoran

  • Hero Member
  • *****
  • Posts: 1977
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Problem with Spktoolbar blinking
« Reply #1 on: March 09, 2025, 09:34:42 am »
This is a ccr component, so you can report here: https://gitlab.com/freepascal.org/lazarus/ccr/-/issues
Swan, ZX Spectrum emulator https://github.com/zoran-vucenovic/swan

wp

  • Hero Member
  • *****
  • Posts: 13270
Re: Problem with Spktoolbar blinking
« Reply #2 on: March 09, 2025, 02:30:51 pm »
I use SpkToolbar (version 0.1.8 ) on Windows 11.

When I move the mouse over the buttons, the whole component blinks, I don't have this behavior on Ubuntu.
I cannot confirm this with the demo applications which come with SpkToolbar (same SpkToolbar version, Windows 11 as well). What are you doing? Please post a small sample project demonstrating the issue.

danielaemtranse

  • Newbie
  • Posts: 4
Re: Problem with Spktoolbar blinking
« Reply #3 on: March 11, 2025, 05:04:08 am »
I have this problem even if I run the sample project that comes with Spktoolbar, see the attached video

wp

  • Hero Member
  • *****
  • Posts: 13270
Re: Problem with Spktoolbar blinking
« Reply #4 on: March 11, 2025, 10:23:20 am »
The DoubleBuffered property could be the culprit. By default it is on (true), but when I turn it off I can produce a similar effect like in your video. This is not a published property and thus cannot be set in the Object Inspector. So please search your code for something like "DoubleBuffered" and comment out this line/these lines if it refers to SpkToolbar.

dseligo

  • Hero Member
  • *****
  • Posts: 1625
Re: Problem with Spktoolbar blinking
« Reply #5 on: March 11, 2025, 11:18:33 am »
I also experienced this problem several times, but I don't recall in what circumstances was that.

I am sure I didn't touch DoubleBuffered property. I experimented with dark mode (with uWin32WidgetSetDark unit from Double Commander by Alexander Koblov), and in that unit is this function:
Code: Pascal  [Select][+][-]
  1. class function TWin32WSCustomFormDark.CreateHandle(
  2.   const AWinControl: TWinControl; const AParams: TCreateParams): HWND;
  3. var
  4.   Info: PWin32WindowInfo;
  5. begin
  6.   AWinControl.DoubleBuffered:= True;
  7.  
  8. ...

This function turns DoubleBuffered property to True, but maybe there are some other components/packages which changes DoubleBuffered property to False ("behind user's back" so to speak), and consequence is 'blinking' which OP experiences.
« Last Edit: March 11, 2025, 11:20:08 am by dseligo »

danielaemtranse

  • Newbie
  • Posts: 4
Re: Problem with Spktoolbar blinking
« Reply #6 on: March 11, 2025, 10:26:22 pm »
Thank you a lot, it worked for me.

 

TinyPortal © 2005-2018