B4J Library Menubar extended *Update 1.3*

Name: GBEMenubar
Version: 1.3
Language: B4J
License: Royalty free
(C) icons Royalty free from icons8.com
(C) audio file Royalty free from pixabay.com

Thank you for the Basic Ideas of some Forum Members who published the code snippeds of:
ShortCut (Daestrum) and setMenuIcon (tchart clickable Title) and CSS/Badge (Paul Meuris).
Hope to solved requested features. Please help us to use and test View.

The B4J Menubar with extende features:
B4J_UjRnCPIGWG.png
java_jbibsHLgkW.png

B4J_Gk76SgaeHC.png
B4J_zjByyAUd6w.png


  • Custom View for Designer
  • Customizable Bar Menu and MenuItems and Menubar-Tooltip GUI/Properties.
    With predefined Themes (css files) selectable form designer property.
    - Solid Background
    - 2 color Gradient Background
    - Multicolor Gradient Background
    - Individual Image as Background
  • Add Tooltip to Bar
  • Add Badge to Bar
  • Add shortcut ctrl+ or alt+ to Item
  • Add Icon to Menu or Item
  • Add separator line to Items
  • Use key click beep with individual sound
  • Build Menu automated on base on structure file (New structure!)
  • Build Menu by code
  • Enabled/disable Items by code
  • Show/hide Items by code
  • Custom Event MenuClicked(ID)
  • Custom Event ItemClicked(ID)
  • Retrive lib version info to check for update
  • German and English Manual
The new Menu_Clicked Event is a good place to control the access (enabled/disabled) of the attached MenuItems.

Due to too big load Custom Project and documents from here
 

Attachments

  • 1759350356976.png
    1759350356976.png
    11.6 KB · Views: 246
Last edited:

Theera

Expert
Licensed User
Longtime User
Name: GBEMenubar
Version: 1.1
Language: B4J
License: Royalty free
(C) icons Royalty free from icons8.com

*Update Version 1.1*
After a long research I found a solution for some open features I like to add. Therefor I publish this update short after release to get the missing features quickly to your hands. Look at the description in the features list with red text.

Thank you for the Basic Ideas of some Forum Members who published the code snippeds of:
ShortCut (Daestrum) and setMenuIcon (tchart clickable Title).

The B4J Menubar with extende features:
View attachment 167502

  • Custom View for Designer
  • Customizable MenuBar GUI/Properties.
  • Load Menustructure form File and build Menus and MenuItems.
  • No need to build Menus/Items via Jason Code of MenuBar-View/Menus Property.
  • Easy Add Menus/MenuItems by code manually.
  • enable/disable MenuItems by code.
  • show/hide MenuItems by code.
  • (Title) Menu and Menuitems with Icons.
  • MenuItem with Separator Line.
  • MenuItem with ShortCut Key (Ctrl+ .. ).
  • Custom Event ItemCLicked (MenuItem) with reported MenuItem-ID.
  • Custom Event MenuClicked (Title) with reported Menu-ID.
  • Activate/Deactivate Click-Beep

'# Properties #
'GBEMenuBar1.hideMenuItem '# show/hide MenuItem
'GBEMenuBar1.AddMenu '# Add (Title- ) Menu
'GBEMenuBar1.AddMenuItem '# Add (Sub-) MenuItem
'GBEMenuBar1.enableMenuItem '# enable/disable MenuItem
'GBEMenuBar1.hideMenuItem '# show/hide MenuItem
'GBEMenuBar1.LoadMenu '# load and build menu from file
'GBEMenuBar1.Menubar '# the MenuBar View
'GBEMenuBar1.actBeep '# actvate Beep

The new Menu_Clicked Event is a good place to control the access (enabled/disabled) of the attached MenuItems.

See how to install and use by attached B4J Example Projec:.
  • Example includes the CustomView as Class in clear Code.
  • B4J B4Xlib is included in Project ZIP
  • Copy Files Menu.txt (Structure Description) and MyMenu.css (custom GUI) from Example Project File Folder to your Projects Files Folder.
    Modify the files for your needs
After I have test,I found that I can't change hotkey ctrl+D to be Alt+D. How to fix this problem,Sir.
 

Guenter Becker

Active Member
Licensed User
Hello,
that is correct. In Version 1.1. the Key is fixed to Ctrl. I recognized that and will update to Version 1.2 in the next week. This update will give you the feature you are searching for to choose between ctrl and alt.
If you can't wait you have to modifiy the customview code (sub addMemuItem) and the format of the Menu.txt too because at the moment the Menu.txt structure file does not include it..
 
Top