LucaMs Expert Licensed User Longtime User Feb 25, 2026 #1 A "crazy" idea, not easily implementable, but very cross-platform. I'm developing using B4J. I want the Designer to generate the event routine for a pane click. The Designer displays the list of events it can create for the pane, in this case the event: B4X: Copy pnlXXX_MouseClicked (EventData As MouseEvent) Since the project is cross-platform, I'll need the following in the source code: B4X: Copy #IF B4J Private Sub pnlXXX_MouseClicked (EventData As MouseEvent) #ELSE Private Sub pnlXXX_Click #End If End Sub If the Designer were to generate those lines of code based on a setting, it would be useful both to speed up project development and in case I didn't know that that event has a different signature in B4A and B4i.
A "crazy" idea, not easily implementable, but very cross-platform. I'm developing using B4J. I want the Designer to generate the event routine for a pane click. The Designer displays the list of events it can create for the pane, in this case the event: B4X: Copy pnlXXX_MouseClicked (EventData As MouseEvent) Since the project is cross-platform, I'll need the following in the source code: B4X: Copy #IF B4J Private Sub pnlXXX_MouseClicked (EventData As MouseEvent) #ELSE Private Sub pnlXXX_Click #End If End Sub If the Designer were to generate those lines of code based on a setting, it would be useful both to speed up project development and in case I didn't know that that event has a different signature in B4A and B4i.
Erel B4X founder Staff member Licensed User Longtime User Feb 25, 2026 #2 Not exactly answering your request, however Pane was added the Touch event which is its cross platform event.
Not exactly answering your request, however Pane was added the Touch event which is its cross platform event.
LucaMs Expert Licensed User Longtime User Feb 25, 2026 #3 Erel said: Not exactly answering your request Click to expand... [It's a suggestion, not a request ] Yes, your answer is helpful, since I didn't know that.
Erel said: Not exactly answering your request Click to expand... [It's a suggestion, not a request ] Yes, your answer is helpful, since I didn't know that.