The Custom context menu works fine with Erel's solution from here.
However, this solution has no effect if for example a webview is used on a DialogPanel of the CustomLayoutDialog. Testproject "Variant 1" shows this.
In Testproject "Variant 2" the Sub ContextMenu_Create is moved to the class module but doesn't compile with this message:
Does anyone have any idea how to approach the problem? Custom Dialog and Custom Context Menu are useful components that should work together.
However, this solution has no effect if for example a webview is used on a DialogPanel of the CustomLayoutDialog. Testproject "Variant 1" shows this.
In Testproject "Variant 2" the Sub ContextMenu_Create is moved to the class module but doesn't compile with this message:
B4A Version: 9.00
Parsing code. (0.00s)
Building folders structure. (0.01s)
Compiling code. (0.01s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Generating R file. (0.00s)
Compiling generated Java code. Error
javac 1.8.0_191
src\b4a\example\test1.java:300: error: method does not override or implement a method from a supertype
@Override
^
Note: src\b4a\example\starter.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error