Recent

Author Topic: BGRAControls - BGRAImageButton - how to detect if the button is down  (Read 2279 times)

richardcgiroux

  • New Member
  • *
  • Posts: 18
I am trying use the BGRAImageButton as a toggle button but I don't know how to detect when the button is down and up.

Any ideas?

lainz

  • Hero Member
  • *****
  • Posts: 3763
  • Leandro Diaz
Re: BGRAControls - BGRAImageButton - how to detect if the button is down
« Reply #1 on: August 10, 2017, 08:01:55 pm »
I am trying use the BGRAImageButton as a toggle button but I don't know how to detect when the button is down and up.

Any ideas?

Hi, thanks for the suggestion. I've added toggle support on git.
https://github.com/bgrabitmap/bgracontrols

Just set 'Toggle' property to True and then you can get/set the state with the 'Pressed' property.

RAW

  • Hero Member
  • *****
  • Posts: 867
Re: BGRAControls - BGRAImageButton - how to detect if the button is down
« Reply #2 on: August 10, 2017, 08:17:20 pm »
Nice service / support ...  :)
Windows 7 Pro (x64 Sp1) And Windows XP Pro (x86 Sp3) - LAZARUS 2.0.8 FPC 3.0.4 - TRUNK 2.1.0 FPC 3.3.1
// This is polarity (hell) and hell is reigned by lies, nothing but lies. Be careful what you believe ...
// There are 10 types of people in this world, those who understand mind control and ...

richardcgiroux

  • New Member
  • *
  • Posts: 18
Re: BGRAControls - BGRAImageButton - how to detect if the button is down
« Reply #3 on: August 10, 2017, 08:28:34 pm »
Nice service / support ...  :)

Agreed! 

I LOVE the controls by the way. I am using them extensively in my project.  Just amazing.

lainz

  • Hero Member
  • *****
  • Posts: 3763
  • Leandro Diaz
Re: BGRAControls - BGRAImageButton - how to detect if the button is down
« Reply #4 on: August 10, 2017, 10:16:30 pm »
Nice service / support ...  :)
Nice service / support ...  :)

Agreed! 

I LOVE the controls by the way. I am using them extensively in my project.  Just amazing.

Thanks both.

 

TinyPortal © 2005-2018