B4J Question Menu

AlpVir

Well-Known Member
Licensed User
Longtime User
For a couple of hours I'm trying to create a menu !
I looked at a lot of documentation and particularly the example MT.zip ("Test menu)" to post # 4
https://www.b4x.com/android/forum/threads/how-to-make-a-menu-vsible-code.36767/#content

From IDE of B4J :
- Designer
- Open Internal Designer
- and then ????

Where is the data that, in the example MT.zip, activate the menu :
"File", "Edit", "Help", "Test menu" ???
How could I do to change this data ?
I can not see them for change.
Thank in advance
 

AlpVir

Well-Known Member
Licensed User
Longtime User
> In the properties view, scroll down to "MenuBar Properties" and there's a property titled "Menu Items". The menu is created using JSON.

Sorry but I do not understand.
How do I access to "properties view" ?
I see "Main Properties" and "Border Properties".
 
Upvote 0

LWGShane

Well-Known Member
Licensed User
Longtime User
> In the properties view, scroll down to "MenuBar Properties" and there's a property titled "Menu Items". The menu is created using JSON.

Sorry but I do not understand.
How do I access to "properties view" ?
I see "Main Properties" and "Border Properties".

Click on MenuBar >> Properties >> Scroll down to MenuBar Properties >> Menu Items
 
Upvote 0

AlpVir

Well-Known Member
Licensed User
Longtime User
Forgive me but I see no "MenuBar" in IDE (see attached picture)

The following steps:
1) Designer
2) Open Internal Designer
3) Add view
4) MenuBar
5) scroll MenuBar Properties
6) click Menu Items [...]

It appears a "multiline editor" with a generic outline of a menu with some items. But this menu is NOT what the program MenuTest examined.
 

Attachments

  • MenuBar.jpg
    MenuBar.jpg
    67.2 KB · Views: 238
Upvote 0

LWGShane

Well-Known Member
Licensed User
Longtime User
Upvote 0

LWGShane

Well-Known Member
Licensed User
Longtime User
@AlpVir
I just opened the project, and for that project you need the JavaFX SceneBuilder to edit the menu as it doesn't use the internal scene builder.

(There are two types of designers: the new Visual Designer and the old JavaFX SceneBuilder.)
 
Upvote 0

AlpVir

Well-Known Member
Licensed User
Longtime User
Now everything is clear. I figured out how I can create menus through "Open Internal Designer >> AddView >> MenuBar >> etc".
The project MenuTest using an old method of creating the menu; not having installed Java FX Scene Builder can not be changed.
Instead (and this is what matters most) are now able to create my menus.
Thank you very much.
 
Upvote 0
Top