All of the threads I found about changing the mouse cursor dealt with the Main page. I have a label on a non-Main window. How do I get the mouse cursor to change only when hovering over that label?
Private frmSecondForm As Form 'Process Global
Private Sub Label1_MouseEntered (EventData As MouseEvent)
frmSecondForm.RootPane.MouseCursor = fx.Cursors.OPEN_HAND
End Sub
Private Sub Label1_MouseExited (EventData As MouseEvent)
frmSecondForm.RootPane.MouseCursor = fx.Cursors.DEFAULT
End Sub
Playing around with B4XPages example ... try this. Unsure if its the best approach. ( Process Global vs Dimmed locally )
B4X:
Private frm2 as Form 'Process Global
'in B4XPage_Created()
frm2 = B4XPages.GetNativeParent(Me) 'will return the page Form.
Private Sub Label1_MouseEntered (EventData As MouseEvent)
frm2.RootPane.MouseCursor = fx.Cursors.OPEN_HAND
End Sub
Private Sub Label1_MouseExited (EventData As MouseEvent)
frm2.RootPane.MouseCursor = fx.Cursors.DEFAULT
End Sub