KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Capturing multiple clicks on a form
PRODUCT: 4D | VERSION: 14 R5 | PLATFORM: Mac & Win
Published On: April 3, 2015

The Clickcount command determines how many times a user has clicked in rapid succession with the same mouse button. This allows the user to differentiate different actions to happen base off the number of clicks.

Case of
: (Form event=on Clicked)
  Case of
    :(Clickcount=1)
    //perform action on single click

    :(Clickcount=2)
    //perform action on single click

    :(Clickcount>=3)
    //perform action with 3 or more clicks

  End case
End case


Note: If the On Double Clicked event is checked off in the properties event of the object, the On Double Clicked event will take precedence over the event where Clickcount=2. The actions under :(Clickcount=2) will not be executed if the double click event is checked. Therefore make sure to uncheck the On Double Clicked event in the properties list so the actions under :(Clickcount=2) can be executed.