[F/OS] 🐁 ClickTool - Detect (Long) Clicks For Your Components!

:computer: Introduction

An open source non-visible extension that detects clicks and long clicks for visible components that does not have the Click or LongClick events.

:date: Release date: 2022-03-22T08:00:00Z

:package: Package name: com.gordonlu.clicktool.aix

:clock4: Version: 3

:open_book: Documentation

Event blocks

GotFocus

image

This event is fired when a registered component is focused.

Parameters: component = component

LostFocus

image

This event is fired when a registered component has losen focus.

Parameters: component = component

OnClick

image

This event is fired when a registered component is clicked.

Parameters: component = component

OnLongClick

image

This event is fired when a registered component is long clicked.

Parameters: component = component

Method blocks

PerformClick

image

Performs a click for the given component.

Parameters: component = component

PerformLongClick

image

Performs a long click for the given component.

Parameters: component = component

RegisterClick

image

Registers the component so that when the user clicks the component, it will fire the OnClick event.

Parameters: component = component

RegisterFocus

image

Registers the component so that when the user focuses or removes focus for the component, it will fire the respective event.

Parameters: component = component

RegisterLongClick

image

Registers the component so that when the user clicks the component, it will fire the OnLongClick event.

Parameters: component = component

UnregisterClick

image

Unregisters the component so that when it is clicked, the extension will not fire the OnClick event.

Parameters: component = component

UnregisterFocus

image

Unregisters the component so that when the user has focused or removed focus this component, it will not fire the respective event.

Parameters: component = component

UnregisterLongClick

image

Unregisters the component so that when it is clicked, the extension will not fire the OnLongClick event.

Parameters: component = component

:inbox_tray: Downloads

AIX:
com.gordonlu.clicktool.aix (9.7 KB)

:lock: Open Source

Here you go, have fun.

:+1: Rate my extension! :-1:

I made this extension because of learning, not really because of app developing. Just for fun.

If you think this extension is bad, please tell me why.

  • Good extension!
  • Bad extension.

0 voters


Made with Niotron IDE.

Kindly :email: PM me if you have any questions! Also, if you like my extension, please :heart: like it! It takes some effort for me to make it...

Votes and likes tell me the general user feedback of my extension. If you read this extension, please take 20 seconds to drop by and give a vote / like!

If you have any features that you want to add and you know the code, PM me or directly reply below using the image button.

By downloading my extension, you agree the terms and conditions in my website


Gordon Lu

:speech_balloon: Message :earth_africa: Website :e-mail: E-mail

8 Likes

Great ! But I don't think so that

is necessary for now...

2 Likes

That is for later use.

2 Likes

Hh nice extension and you have made it open source that I like

2 Likes

:candy: Version 3! :chocolate_bar:

GotFocus

image

This event is fired when a registered component is focused.

Parameters: component = component

LostFocus

image

This event is fired when a registered component has losen focus.

Parameters: component = component

RegisterFocus

image

Registers the component so that when the user focuses or removes focus for the component, it will fire the respective event.

Parameters: component = component

UnregisterFocus

image

Unregisters the component so that when the user has focused or removed focus this component, it will not fire the respective event.

Parameters: component = component

2 Likes

This is not version 2?

It's version 3. The post was approved by mods yesterday, and I updated to version 2 immediately.

1 Like

Oh I see ok

Hello everyone,

This extension has merged with the Component Util extension. I will no longer update the source code or the extension. If you have feature requests, please answer in the ComponentUtil topic. You can still download the extension from my website, GitHub, or this topic though.

@Gordon_Lu Can you please differentiate between @Aquib_Khan 's extension and in your's so that I can choose one currently I am liking just because your source code is open but I would like to know the difference.

His extension has a few more options. This extension does not offer support anymore, unlike his, because this extension is already moved to the new ComponentUtil extension.