Thank you very much for your suggestion.
The class is a customview. I am creating a Spinner object.
I need you to open a ListView after clicking the spinner object.
The ListView must be anchored to activity.
The panel containing the spinner may be small dimensions and do not contain the listview; i need to add the listview to the activity.
For the moment I'm using this code.
It assumes that the label is linked to Activity or a panel that in turn is linked to activity.
It does not work if there are more nested panels
MyAct=mBase.Parent
Left=mBase.Left
Top=mBase.Top
If MyAct.Parent<> Null Then
Try
Left=Left+MyAct.Left
Top=Top+MyAct.Top
Catch
Log("Errore")
End Try
MyAct=MyAct.Parent
End If
I need you to open a ListView after clicking the spinner object.