B4J Question Menubar Badge

Guenter Becker

Active Member
Licensed User
Hello,
tried to search in the forum but did'nt found a solution. I like to add a badge to a Menubar View (Title) Item and to a menubar MenuItem. But how? Small B4J snipped is wellcome. Thank you.
 

Guenter Becker

Active Member
Licensed User
Checked this. It is a B4A or B4i Project. Tried it as B4J on Menubar without any result or error.
 
Upvote 0

PaulMeuris

Well-Known Member
Licensed User
1759670493449.png

In B4J you can add a badge to a node.
B4X:
badger1.SetBadge(Menubar.As(Node),1)
 
Upvote 0

Guenter Becker

Active Member
Licensed User
View attachment 167587
In B4J you can add a badge to a node.
B4X:
badger1.SetBadge(Menubar.As(Node),1)
Hello, I tried it but the badge is place with its middle point in the upper right corner. How to give it a readable position?

I tried also to use it on Menu and MenuItem but this leads to an Error that theses elements can't be cast.
1759738657359.png
 
Upvote 0

Guenter Becker

Active Member
Licensed User
Hello, I tried it but the badge is place with its middle point in the upper right corner. How to give it a readable position?

I tried also to use it on Menu and MenuItem but this leads to an Error that theses elements can't be cast.
View attachment 167596
Hello Paul, please forgett it. I solved it by modifing the badger code. Now I can set the X/Y Points. Thank you.
Please let me point to your kind answeer about the background I replied to it because need some more help.
 
Upvote 0
Top