I created the Context menu for all the nodes in my user interface by following these steps:
1. Use BalConverter to export the user interface to JSON. It is here: https://www.b4x.com/android/forum/t...e-layouts-files-to-json-and-vice-versa.41623/
2. Add tags to each node that are the same as the eventName for the node. I wrote AddTags for this. It is attached to this post.
3. AddTags also creates a NodeList.txt file with a list of the eventNames for each node on the Pane. Remove the Pane and MainForm nodes from the list. They don't have a tag property.
4. Use a spreadsheet to create Sub InitializeNodeList. 230 lines of NodeList.Add(<node>). Nodes from the NodeList.txt file.
5. Upload your code to OpenAI.
6. Use OpenAI to analyze your code and create the help file texts in Sub LoadHelpTexts.
7. Define your help menu using ContextMenu here: https://www.b4x.com/android/forum/threads/contextmenu-solved.146746/ and here: https://www.b4x.com/android/forum/threads/context-menu-for-multiple-nodes.163775/
7. Sub ctxm_Action displays text based on the tag for the node clicked on.
Use _Click instead of _MouseClicked(EventData As MouseEvent) for each node you want to have help for. I am still looking for a way to fix this but have not found one yet.
My full implementation of this context menu is in my code here: https://www.b4x.com/android/forum/threads/openai-library.163668/
1. Use BalConverter to export the user interface to JSON. It is here: https://www.b4x.com/android/forum/t...e-layouts-files-to-json-and-vice-versa.41623/
2. Add tags to each node that are the same as the eventName for the node. I wrote AddTags for this. It is attached to this post.
3. AddTags also creates a NodeList.txt file with a list of the eventNames for each node on the Pane. Remove the Pane and MainForm nodes from the list. They don't have a tag property.
4. Use a spreadsheet to create Sub InitializeNodeList. 230 lines of NodeList.Add(<node>). Nodes from the NodeList.txt file.
5. Upload your code to OpenAI.
6. Use OpenAI to analyze your code and create the help file texts in Sub LoadHelpTexts.
7. Define your help menu using ContextMenu here: https://www.b4x.com/android/forum/threads/contextmenu-solved.146746/ and here: https://www.b4x.com/android/forum/threads/context-menu-for-multiple-nodes.163775/
7. Sub ctxm_Action displays text based on the tag for the node clicked on.
Use _Click instead of _MouseClicked(EventData As MouseEvent) for each node you want to have help for. I am still looking for a way to fix this but have not found one yet.
My full implementation of this context menu is in my code here: https://www.b4x.com/android/forum/threads/openai-library.163668/