[FREE] Component Tools Extension

Hi mohamed, can you link an aia using example ?

1 Like

I've a one but its compatible with kodular, i will make it in app inventor and send it again, thanks :slightly_smiling_face:

in particular I did not understand how to use SetBottomPosition

1 Like

For the parameter Component : add the component you want to set the bottom position of. For the bottom position parameter : add an integer value with how much you would like the bottom position be, an examples are:





OK thank you, why SetBottom instead of SetHeight ?

SetBottomPosition , changes the position of the bottom of the component only, setHeight changes the whole component height and position.Here is the difference:


With setBottomPosition:



With set Height block:


blocks (59)
__
I think you can understand the change from Text for Button 1 :slightly_smiling_face:

OK, why SetBottomPosition does not run in Screen.Initialize?

1 Like

Most probably , it's a method that is called in the components source code after the bottom position is set which rests the bottom position.After testing in companion it looks like the bottom position got set and then it resets again.I will see what can i made, right now, don't use set bottom position at screen initialization.

1 Like

this is why i asked you how to use SetBottomPosition, i had put it in Screen.Initialize and it didn't work. Thanks for your time.

2 Likes

How can I move a button to bottom without knowing the screen dimensions in pixel ?

1 Like

I think this formula can work, although i'm not sure:

2 Likes

I am not able to perform a event when my arrangement is clicked.

Didn't understand you, you mean the touched even isn't triggered ?

1 Like

Yes, I want to listen for a compoent click.

So the touched event isn't triggered, have you registered the component?

1 Like

How can I? I dont see any blocks

There is a register block here :point_down::

1 Like

Dear @MohamedTamer,
I wish to thank you very much indeed !!
Thanks to your GREAT extension I've been capable to do this.
(A new version of my old convertible car hud).
I owe you a pizza or a coffee (I'm Italian :slight_smile: ).
Have a great life!
Ugo.

6 Likes

Everyone is allowed to use this extension in his projects for the MIT Appinventor Apathon 2021!
Here's the permission:

I, Mohamed Tamer, hereby attest that I am the author of the extension, Component Tools, and grant that MIT has a non-exclusive irrevocable license to republish these extensions as part of the project file for the purposes of MIT App Inventor Apathon 2021.

4 Likes

Hi, sorry for the ignorance but after installing the extension in my project I still can't see the blocks of it, I only see the default ones, what can I do?
Thanks in advance

3 Likes