Listener Extension

Hello, I Edited this Post Im sorry just because my English So bad this is function To add listener of component with event Clik and Longclick

AIX

Blocks

9 Likes

Are you sharing an extension?
or
Asking help?:confused:

Did you see the link? and the hashtag off course

sorry, I think I Put wrong word “Help” on my post.

This confused me to ask above question.

Please add some screen shots and describe briefly.

i already atached the blocks

Thanks for the great extension :heart_eyes:

1 Like

Nice see you happy :joy:

1 Like

LISTENER EXTENSION

Description

Useful extension for listening click and long click methods for Images, Label, Horizontal Arrangement, Horizontal Scroll Arrangement, Vertical Arrangement and Vertical Scroll Arrangement.

Event handlers

  • Click: Event handler when clicking a registered component. Returns the id of the clicked component.
  • LongClick: Event handler when long clicking a registered component. Returns the id of the long clicked component.
  • RegisImage: Method for registering an image component with an id. You can use this method when initializing the screen.
  • RegisLabel: Method for registering a label component with an id. You can use this method when initializing the screen.
  • RegisHorizontalArrangement: Method for registering an image component with an id. You can use this method when initializing the screen.
  • RegisHorizontalScrollArrangement: Method for registering an image component with an id. You can use this method when initializing the screen.
  • RegisVerticalArrangement: Method for registering an image component with an id. You can use this method when initializing the screen.
  • RegisVerticalScrollArrangement: Method for registering an image component with an id. You can use this method when initializing the screen.

Example

Downloads

.AIX Link
.AIA Link

11 Likes

Thank You so much Mr. Carlos Pedrosa :metal::+1:

1 Like

Looks like this extension is a perfect copy of my extension:

I hope for you that you don’t have used any of my code.
All of my codes have a copyright.

Else, great work. :slight_smile:

1 Like

@Mika I build the code from the bottom i’ll send the code to you.

Allright, then I trust you.
Good work.

Great work @Kus_Zab keep it up.

1 Like

THANKS!
I was looking this morning for something like that

Does any one have a good use case for this ?

Would it be good for use with a dynamic component generator,
or maybe for exposing and hiding drawers of Horizontal Arrangements
like the AI2 Design Screen Component Category drawers?

ABG

hi abraham, nice to see you here!
i’ll use it for the longclick event on horizontal arrangements in which i a a list of data…click shows data in a screen, long click edit

So this could be used the same way as the Bo Kalvslund
ListView simulation in https://www.youtube.com/watch?v=rAgllUjT6FE&feature=youtu.be
where he set up a Vertical Arrangement of five Horizontal Arrangements,
each HA containing an image, 2 labels, and a button,
matched against a sliding window into an underlying list,
selection done only by the buttons.

The advantage here would be specifying the HA instead of the button,
so the user could press anywhere in the HA to select?

ABG

1 Like

bo is great, but now i’m using this

the advantage, in the arrangement i’m building, is to avoid another button…it’s very full of stuff…

Is it possible add track left,right operations

very good extension, but RegisVerticalScrollArrangement cannot control,please check it.