B4J Library Popup menu class

Here is a class to display popup menus which may be :
  • simple menus
  • tree menus
  • file/folder selection menus
Menus may disapear automatically after a delay.
Source code is provided as well as a demonstration application.



See an example of application in Paste it around

Hoping you will enjoy
 

Attachments

  • Popup class V0.3.zip
    23.8 KB · Views: 758
Last edited:

FrenchDeveloper

Member
Licensed User
Longtime User
Few corrections were made from V0.2 :
  • style example
  • conditional call to callback subs
  • mouse eventdata added to callback subs :
B4X:
#Event: B_Add_clicked (EventData As MouseEvent)
#Event: B_Delete_clicked (Selected_file as string, EventData As MouseEvent)
#Event: B_Go_to_parent_clicked (EventData As MouseEvent)
Zip file is updated in first post
 
Last edited:

FrenchDeveloper

Member
Licensed User
Longtime User
From V0.3, I added :
  • right click functions for file or folder mode :
    • create folder
    • delete file or folder
    • rename file or folder
  • open button
Zip file is updated in first post
 

Suntzu

Member
Licensed User
Longtime User
Hi FrenchDeveloper,

I am using this as a popup menu (with style). Is it possible to add the following:

1. Set the default selected item?
2. Up and arrow key presses to select an item?
3. Enter key to select an item?

Thank you in advance.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…