I have a Pane containing a TableView and a ListView that pops up when I right click the mouse on the TableView.
Below that Pane, I have a TextArea.
When I right click on the last line of the TableView, the popup mouse ListView is hidden behind the TextArea:
Here is what it looks like when I click on the last 3 lines:
I tried using this tip:
https://www.b4x.com/android/forum/threads/pane-bringtofront.70149/
for the Pane, the TableView and the mouse ListView but nothing works. The project is quite big so I can't really attach it but if this is not enough information, I will try to create a small one to show the problem.
This is the pop-up menu code:
TIA
Below that Pane, I have a TextArea.
When I right click on the last line of the TableView, the popup mouse ListView is hidden behind the TextArea:
Here is what it looks like when I click on the last 3 lines:
I tried using this tip:
https://www.b4x.com/android/forum/threads/pane-bringtofront.70149/
for the Pane, the TableView and the mouse ListView but nothing works. The project is quite big so I can't really attach it but if this is not enough information, I will try to create a small one to show the problem.
This is the pop-up menu code:
B4X:
' SecondaryButtonPressed is the right mouse button
Sub tvMenuSettings_MouseClicked( EventData As MouseEvent )
Dim x, y As Int
' this event is called *after* SelectedRowChanged()
If CurrentNVP.Length > 2 And EventData.SecondaryButtonPressed = True Then
If GetMenuCellValue( CurrentNVP( 0 ), 3 ).Length > 0 Then
'Log( "SecondaryButtonPressed" )
x = EventData.X
y = EventData.y
lvMouseMenu.Items.Clear
lvMouseMenu.Items.Add( "===> Cancel" )
lvMouseMenu.Items.Add( "Load Default")
lvMouseMenu.SetSize( lvMouseMenu.Width, lvMouseMenu.Items.Size * 30dip )
lvMouseMenu.Top = y + 50dip
lvMouseMenu.Left = x
lvMouseMenu.Visible = True
BringToFront( pnMenuSettings ) ' the Pane
BringToFront( tvMenuSettings ) ' the TableView
BringToFront( lvMouseMenu ) ' the ListView
DisplayTimer.Enabled = True
EventData.Consume
End If
End If
End Sub ' tvMenuSettings_MouseClicked()