How do I: Open a spinner dialogue from another object?

martindroid

Member
Licensed User
Longtime User
[Solved] How do I: Open a spinner dialogue from another object?

Hey guys! Just very recently found this site and I like what you're doing!
I've been messing around and I'm trying to find some way to make and Image_Click open up a spinner dialogue (without having to press the spinner)

I'm very new to this so sorry if it's a stupid question. Thanks / Martin

edit: solved at bottom, thanks
 
Last edited:

pluton

Active Member
Licensed User
Longtime User
Maybe like this

B4X:
Sub Image_click
spinner1.Visible = True 'show the spinner if it is hidden
spinner1.AddAll(Array As String("Sunday", "Monday")) 'add some list into spinner
End Sub
 
Last edited:
Upvote 0

martindroid

Member
Licensed User
Longtime User
Thanks for the quick reply!
However, the spinner is set up correctly with items and all, but I want the actual dialogue - the popup with those choices.
 
Upvote 0

martindroid

Member
Licensed User
Longtime User
ah, yes it does indeed seem to be what I'm looking for- now to figure out how to create one of those Thanks

edit: Figured it out, exactly what I was looking for! THANKS!

B4X:
Dim newlist() As String
Dim result As Int
newlist = Array As String("Purple","Red","Green","Blue","Yellow","White")
result = InputList(newlist, "titel", "-1")
 
Last edited:
Upvote 0

prstein

Member
Licensed User
Longtime User
I've been looking for a way to do this as well. I started out using InputLists. The problem is that they are modal. AsyncStreams are blocked while the InputList is displayed, which sometimes causes bad things to happen.

Best Regards,
Paul
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…