Menu

Mouse up event

Kaarigar
2013-08-19
2013-08-21
  • Kaarigar

    Kaarigar - 2013-08-19

    I want the TDPFButton to have a border when the click event occurs, and the border to disappear when the mouse up event occurs. I can accomplish the border when mouse down event happens, but I can't reset the border to zero width because there is no mouse up event. Is it possible to have mouse up event for button, or in general for all controls?

     
    • Babak Yaghoobi

      Babak Yaghoobi - 2013-08-19

      Hi,

      You can use TDPFButton.OnClick instead of Mouse up,
      I used this event for onclick

      regrads

       
  • Kaarigar

    Kaarigar - 2013-08-19

    What I want to accomplish is this effect:

    button OnMouseDown -> set button border width = 2
    button OnMOuseUp -> set button border width = 0

    OnClick only gives me mouse down -

     
  • GJB

    GJB - 2013-08-19

    MouseDown and MouseUp do not sound like proper iOS events - or do I misunderstand something?

    Kind regards

     
    • Kaarigar

      Kaarigar - 2013-08-19

      Yes, they are not proper events. But they must be available somehow (through gestures or whatever) so that one can trap the up and down events. I am sure it is somehow done in the iOS world, no?

       
      • Babak Yaghoobi

        Babak Yaghoobi - 2013-08-19

        Hi, Kaarigar

        OnMouseUp = OnClick

        button OnMouseDown -> set button border width = 2
        button OnClick -> set button border width = 0

        regards

         
        • Kaarigar

          Kaarigar - 2013-08-20

          Ok! Now I get it. Gotta give it a try!

           

          Last edit: Kaarigar 2013-08-20
        • Kaarigar

          Kaarigar - 2013-08-21

          Yes, it worked. Wonder why it took me so long to get it after your first suggestions. I think I was relying too much on the names of these two handlers. Thanks!

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.