Menu remove

WizardOz

Member
Licensed User
Longtime User
Is it possible to remove or "ghost" å menu-item after it has been added?

Sent from my Desire HD using Tapatalk
 

eps

Expert
Licensed User
Longtime User
I would suggest uploading a screenshot and/or some code to give a little more info. about the problem you're experiencing..
 
Upvote 0

WizardOz

Member
Licensed User
Longtime User
I am not experiencing any problems, my friend.

I am however unable to find any help-file regarding removing menu-items after making them. If you dont know what I am talking about, its the menu that pops up while pressing the menu-button.
 
Upvote 0

slc9339

Member
Licensed User
Longtime User
Is there a way to leave the menu item, but just disable it (lighter color)? I don't care if it's still there, I just want it to not do anything when pressed.

Thanks
Mark
 
Upvote 0

reeZZer

Member
Licensed User
Longtime User
Just add your own check inside the Sub.
Like:

B4X:
If MenuEnabled Then
'do the stuff when pressed
End If

Then nothing will happen if you click the Item.
 
Upvote 0

parijs

Active Member
Licensed User
Longtime User
This is working by me.


If main.menuhide ="0" Then
ListView1.AddTwoLinesAndBitmap("Palais Royal", "Begon als een klein en privaat theater.", Bitmap1)
End If




If Value = "Palais Royal" Then
main.menuhide="1"
main.keuze="palroyal"
activity.finish
StartActivity(project)
 
Upvote 0
Top