"Ghosts" on TSpeedButton

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #36909
    Ronaldo Souza
    Participant

    Scenario: legacy app with TSpeedButtons on a TPanel mimicking a ToolBar (can't use a toolbar because of flexibility considerations).

    Delphi 7.0 (build 4.453), Win7 Professional 64 bits

    If the buttons are set to Flat, if I move the mouse fast enough over the buttons, sometimes the hotimages are left behind after the mouse has left the button area.

    Before any mouse movement:

    [attachment=7646:NoGhosts.png]

    After some fast mouse movements over the buttons:

    [attachment=7647:Ghosts.png]

    I attached a project that shows the problem:

    [attachment=7648:Ghosts.rar]

    Thanks in advance,

    Ronaldo

    #54899
    Master
    Participant

    I just tested it and it works normally this problem didn't happen with me

    I use Rad Studio 10 Seattle and Win10 Pro

    #54905
    Support
    Keymaster

    This issue exists only in Delphi 7 and older.

    Standard SpeedButtons can have same behaviour there, because MouseLeave message is not always send to the control.

    I will think how this situation may be improved. Also, I can suggest to use newer version of the Delphi.

    #54926
    Ronaldo Souza
    Participant
    'Support' wrote:

    This issue exists only in Delphi 7 and older.

    Standard SpeedButtons can have same behaviour there, because MouseLeave message is not always send to the control.

    I will think how this situation may be improved. Also, I can suggest to use newer version of the Delphi.

    Thanks for the clarification.

    Since it's a legacy application, it's kinda hard to migrate it to a newer Delphi, but changing the TSpeedButtons to TsSpeedButtons does seem to fix the issue.

    Thanks!

    Ronaldo

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.