Remember hide the button after the selection and not to appear again

522 views
Skip to first unread message

alwaily gh

unread,
May 3, 2016, 4:08:14 AM5/3/16
to MIT App Inventor Forum
Please Help
Control button to show and hide from the Settings screen in the main screen

Or the appearance of the button when you open the program for the first time and after the selection is completely hide

Ghica

unread,
May 3, 2016, 8:13:10 AM5/3/16
to MIT App Inventor Forum
In the Designer screen you can show or hide a button by using the Visible attribute.



In the blocks screen you can set button.Visible true or false anytime you like.


If this does not answer your question, please give more explanation of what you would like to do.
Cheers, Ghica.


alwaily gh

unread,
May 4, 2016, 2:24:13 AM5/4/16
to MIT App Inventor Forum
Thank you for your interest



Do I need
When you open the program for the first time it has two buttons
Arabic language button and English Language

After the selection buttons disappear
When you open the program for the second time the program opens on DirecTV Heterodoxus language

Akshay

unread,
May 4, 2016, 5:21:58 AM5/4/16
to MIT App Inventor Forum
Hi,

You can use the TinyDB to store the preference and load from it the next time the app is started.

After the selection buttons disappear

- In the Button1.Click and Button2.Click definition blocks, use the command to hide both the buttons (after saving that preference in the TinyDB).

Regards.

alwaily gh

unread,
May 4, 2016, 5:58:42 AM5/4/16
to MIT App Inventor Forum
I hope you
Attaching an example of a project

Taifun

unread,
May 4, 2016, 12:10:41 PM5/4/16
to MIT App Inventor Forum
A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook   http://www.appinventor.org/book2 ... the links are at the bottom of the Web page.  The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro  and the aia files for the projects in the book are here:  http://www.appinventor.org/bookFiles  
How to do a lot of basic things with App Inventor are described here:  http://www.appinventor.org/content/howDoYou/eventHandling  .

Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html to learn the basics of App Inventor, then try something and follow the
 Top 5 Tips: How to learn  App Inventor

You will not find a tutorial, which does exactly what you are looking for. But doing the tutorials (not only reading a little bit) help you to understand, how things are working. This is important and this is the first step to do.

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by  Taifun.         


alwaily gh

unread,
May 4, 2016, 2:50:35 PM5/4/16
to MIT App Inventor Forum
At the beginning of the program I have loaded in the main screen button number 1 and number 2 photos .... 1 button to show the image 1 ..... 2 button to show the image is saved and two the following procedure after the selection button 1 masking 1 and 2 is always the button and the picture show only one always .. and when I entered the program again I just want the appearance of the image No. 1

Taifun

unread,
May 4, 2016, 2:53:34 PM5/4/16
to MIT App Inventor Forum
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

alwaily gh

unread,
May 5, 2016, 5:14:43 AM5/5/16
to MIT App Inventor Forum
I want to be the appearance of the text by selecting only button
asasas.aia

Taifun

unread,
May 5, 2016, 9:56:50 AM5/5/16
to MIT App Inventor Forum
If you are asking for help, I recommend you to make it as easy for others to be able to help you ...
You probably will get more feedback then...

which means in your case post a screenshot of your relevant blocks...

To download the aia file, upload it to  App Inventor, open it, do some bug hunting for you, etc... this takes time, and most people will not do that...
Thank you.

Ghica

unread,
May 5, 2016, 10:02:57 AM5/5/16
to MIT App Inventor Forum
As far as I can see, that is exactly what happens. I loaded your .aia
After I visited Screen2 and set the JBSystems tag, if you press button1, you get text for label1, If you press button1, you get text for label1,
So what do you want differently?

One remark about screen switching, in Screen2  use close screen (from the control blocks) instead of open another screen screenName "Screen1".
Cheers, Ghica.

alwaily gh

unread,
May 6, 2016, 9:15:14 AM5/6/16
to MIT App Inventor Forum
I want to show only the text of the Copier chosen from the button ......... so as to cause the appearance of two versions together Copier

Ghica

unread,
May 6, 2016, 3:45:02 PM5/6/16
to MIT App Inventor Forum
I am very sorry, but I just do not understand what you want to do. Maybe you can find someone who speaks your language to explain it to and then post in more detail what you want.
And, believe it or not, you would be able to solve your problem if you follow Taifun's tips posted earlier in this thread and try to learn more about AI2 before you continue.
Cheers, Ghica.

alwaily gh

unread,
May 6, 2016, 6:41:52 PM5/6/16
to MIT App Inventor Forum
Thank you for your answer and your advice is .... Of course I have a beginning and an unique program in Google Play users more than 80,000 thousand people ... but I could not connect the idea required .... also honored visit you on my account in Google Play and put your mind in a programmatic hand ...

https://play.google.com/store/apps/details?id=appinventor.ai_myooorh0.sawa

Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

alwaily gh

unread,
May 7, 2016, 6:32:27 AM5/7/16
to MIT App Inventor Forum
There are 2 button on the screen and 2 text label is required After selecting one of the buttons automatically disappear and only one shows a text label every time enter program

ScottFerguson

unread,
May 7, 2016, 6:43:41 AM5/7/16
to MIT App Inventor Forum
Perhaps use Windows 7 Paint to make a mockup of what you want the screen to look like before and after the button is clicked and attach it to this post.
Pictures are the universal language :)
---

alwaily gh

unread,
May 8, 2016, 7:48:43 AM5/8/16
to MIT App Inventor Forum
What is the useful here
بدون عنوان-1 نسخ.jpg

Ghica

unread,
May 8, 2016, 11:37:18 AM5/8/16
to MIT App Inventor Forum
Concerning your last question: It is totally useless to have these blocks if you do not give the setting a value.

Then, this is my last attempt to answer your earlier questions. If this does not help, I cannot help you.

I made two different answers, one where I tried to use the setup of the .aia you upload:
Basically, 
if you press button1, the text of textbox1 is made visible and the text of textbox2 is made invisible
if you press button2, the text of textbox1 is made invisible and the text of textbox2 is made visible

The other solution uses one label, which would be better if the user should not be able to change the text. And it uses a list with 2 items.
if you press button1A, the text of item 1 in the list text2show is put in label1
if you press button2A, the text of item 2 in the list text2show is put in label1

Here is the design:

And here are the blocks:


Be happy. Cheers, Ghica.

buttons_and_text.aia

alwaily gh

unread,
May 9, 2016, 2:36:58 AM5/9/16
to MIT App Inventor Forum
Thank you to try to help me
I wish through the attached file that you can help me
asasas.aia

Ghica

unread,
May 9, 2016, 5:47:13 PM5/9/16
to MIT App Inventor Forum
I am really sorry. I looked at your new .aia and at your play store program. But still, I have no idea what you want.
Maybe you can find a person who speaks English and who can describe your problem for you.
And, follow our earlier recommendations!!!
Cheers, Ghica.
Reply all
Reply to author
Forward
0 new messages