[Extension] DynamicComponent extension

extension

#85

thank you for your reply :smile::smile::smile::smile::smile:


#86

2 posts were split to a new topic: Tutorials by Pixii


#87

hi hossein
is it possible to set the number of elements (button labels etc) by user action?

i mean, in my app the user choose all persons who lives in rome, and i wan create a button for every person…can this app set the number of buttons based on user selection?


#88

hi,
found the solution if the number of elements are not fixed


#89

do not know if someone is interested, but made a procedure. and it works


#90

@Diego_Marino Thanks for sharing


#91

worked two hours… :smiley:


#92

just polished everything…now the procedure has only two sockets, deleted all the useless global variables


#93

hi @Hossein
sorry to bore you about that, but i have a problem.
as you can see i’m using this procedure (a bit changed now) to make buttons in two arrangements…in the first all ok, in the second buttons do not have white background. why?


#94

Hello all ,
I have a suggestion and it would be really helpful if it is implemented. suggestion is that this extension should have ability to copy the existing horizontal or vertical arrangement components for infinite times along with the components present inside the horizontal or vertical arrangement component.
just like instagram …lets suppose the image and like button are present in vertical arrangement component and when user reaches screen end, the exact same copy of vertical arrangement component should be created.

Thanks,
Hitesh.


#95

Unbenannt
there is no need to use nested initialize local variable blocks…
use the mutator to have them all in one initialize block
http://appinventor.mit.edu/explore/ai2/support/concepts/mutators.html
Taifun


#96

yes, you’re right…


#97

if i understood, you want the possibility to make a listview using this extension

i’m working on it, maybe it’s possible, maybe not


#98

found the wrong, i suppose. i have to add a global variable that stores ids…otherwise the procedure generate only a series of ids


#99

i don’t get how to use "set size"
the number i set in the socket, is a percentage? pixels? and is it for height, or width?

is it possible to create arrangements?
and more, if i have no values, what do i have to set in values?


#100

At this time, the extension doesn’t include size feature


#101

Cattura

then, i just didn’t get the use of this block…


#102

I didn’t know about that block. I’ll check into the code and post back


#103

hi @Hossein,

i want to ask some stuff

  1. could you add arrangements as dinamic component?
  2. could you specify “set width” and “set height”?
  3. could you add “set text allignment”?

#104

how did you resolved it??