I would like to connect each date different buttons of the app. So when I pick a date with the date picker, the special button for this date should be opened. Is there any possibility to do that?
--
--
probably you like to explain a little bit more in detail what you are trying to do?
a button does not open, a button can be clicked to do something
--
Have you read the AI2 free online eBook http://appinventor.mit.edu/explore/ai2/tutorials.html ... the links are at the bottom of the Web page. The book 'teaches' you how to program and how to use the event handler in "Buttons."
Event that runs after the user chooses a Date in the dialog
A DatePicker can be used to set the text on a Button. The controls available on a DatePicker are described here: http://ai2.appinventor.mit.edu/reference/components/userinterface.html#DatePicker
The code to set the date as the caption on a button would go
AfterDateSet()
in the above block.
Try some blocks, post a screen capture image of your blocks and you will get more advice if necessary.
--
Yes, I have read but it does not show what i want.
Sorry, what i meant was, when I pick a date with the date picker, the special button for this date should be appeared.
--
I want to set the special button visible only on a date when the date is picked. I have tried many ways but to no avail.
--
Button1.visible=false to hide the button; Button1.visible=true to show the button. I think the answer above is the correct one, your explanation is not clear. You did not post your code. If you want help, draw a picture of what you want; post a screen capture of the blocks you tried and someone might be able to figure out what you are thinking.
--
Thank you guys for your help. I have figured out and got what i wanted.
--
I want to set the special button visible only on a date when the date is picked. I have tried many ways but to no avail.
in this case, you will need only one button
--
--
댓글 없음:
댓글 쓰기