Habilitar e inhabilitar spinner con botón / Enable and disable Spinner - extension

.... but it's in the After Selecting Block so it should not be triggered on Screen Initialise.

Not seeing this ??? (tested in companion)

image

image

Anke, is there anything different in the way your last two extensions have been constructed? Even the wording of comments? It seems possible that a small change has resulted in the AV false-positive. 'Download to ASD' v2 does not trigger the AV, yet the more recent v4 does. Now 'Spinner Tool' too.

...you are not using the Spinner Tool Blocks.

Correct :slight_smile:

Disabling a spinner using a button:

spinnerAfterSelectiing.aia (1.8 KB)

grafik

Explanation:
The .AfterSelecting event is triggered because ElementsFromString was set in the Designer and then overridden in the Screen.Inititaize event.

Conclusion:
The Spinner elements should ONLY be defined either in the Designer OR via blocks.

There is another way that doesn't end up being one of those two?

Can you fix that in the Extension?

This has nothing to do with the extension (as I've shown in my test aia: spinnerAfterSelectiing.aia).

....... I know, but a lot of extensions are created to work-around AI2 issues and deficiencies.

Ok, but where is the problem to set the Spinner elements only once (in Designer OR via blocks)?

I see this happen a lot, mainly for Lists. The User follows a tutorial that has a short and simple list of items in the Designer. Then they base another Project on that file but make the List in the Blocks because it's easier to manage, especially if it has to change dynamically at run time. The list in the Designer is overlooked or the User has the reasonable expectation that it is superseded by using the Blocks List.

Yes, and that's why I pointed this out to Evan Patton (in post #24).

1 Like