J.V.B
(Jorge VB)
July 12, 2018, 1:28am
#1
Describe your issue
For some reason, if I program a button to be non-visible after clicking it, it stills being visible and still working, but other components act like if the button wasn’t there (some of them stay behind) this “ghost” button.
Steps to reproduce the issue
Place a button, then click it and then make it non-visible.
Expected Behaviour
The button should disappear, stop occupying screen space and being not-clickable.
Actual Behaviour
The button doesn’t disappear, is clickable but stop occupying screen space (except if I specify its Enabled property to False. In that case, the button isn’t clickable).
Show your Blocks
Case 1
Case 2
yoni_mic
(Jonix)
July 25, 2018, 1:32pm
#2
Right.
it happens just if image attached to button, in that case button.visible=false is not working.
if button has no image then it works fine.
dont forget to add image to the button before testing it
1 Like
Mika
July 25, 2018, 1:35pm
#3
When I have time I will look into it.
2 Likes
Mika
July 30, 2018, 6:59am
#4
I’m not sure why this happens.
I tried some things with the code but the bug was still there.
For now place the button into a layout and make the layout visible/invisible.
3 Likes
ZghostTMS
(Ramom Teixeira)
October 1, 2020, 3:36am
#5
this is the same thing with me
This topic is two years old. @ZghostTMS Please start a new topic for your problem, with all relevant details. Try refering this to help you with your queries.
Asking questions
To improve the chance of getting help on the forum please follow these recommendations when posting a question:
Do your homework first
Search for similar questions/answers on the forum. Try forum search and also Google your problem.
Try to solve the problem yourself, and describe what you have tried. It is much more rewarding to help someone who has tried himself first.
Post in the right categorie, post only once and do not steal topics
Make sure that you post your question …
BTW, welcome to Kodular Community!!
Carlos5
(Carlos Montolio)
December 10, 2020, 4:52pm
#7
I HAVE THE SOLUTION FOR THE NOT DISAPPEARING BUTTONS !!!
Only drag a “Horizontal Arrangement” beside the botton and drag the button inside. I am using this solution in https://play.google.com/store/apps/details?id=appinventor.ai_InventosMontolio.Tareas_pendientes
Don´t touch the properties.
Boban
(Boban Stojmenovic)
December 10, 2020, 5:17pm
#8
Hi @carlos5 this topic is more then two years old och thank you for your participation however, your solution is already mentioned in the thread…
Nevertheless the real cause for this is Show Feedback of a Button.
Show Feedback true causes this if the button contains image.
[20190210_113957]
Through the blocks work just to set to true, false do not.
[bild]
However, in the blocks it reports that it is false
[bild]
Something for @KodularCreator to take a look at.
/Boban
Carlos5
(Carlos Montolio)
December 10, 2020, 5:43pm
#9
With my solution is posible work with the propierties of the button, more easy for to program.
I don´t use " Show Feedback" but I had this problem.