BeneBarros Active Member Licensed User Longtime User May 27, 2015 #1 in fx.Cursors not have the H_RESIZE and V_RESIZE options. how to do this at runtime?
Erel B4X founder Staff member Licensed User Longtime User May 28, 2015 #2 Code: Copy MainForm.RootPane.MouseCursor = GetMouseCursor("V_RESIZE") Sub GetMouseCursor(Name As String) As Object Dim jo As JavaObject Return jo.InitializeStatic("javafx.scene.Cursor").GetField(Name) End Sub Upvote 0
Code: Copy MainForm.RootPane.MouseCursor = GetMouseCursor("V_RESIZE") Sub GetMouseCursor(Name As String) As Object Dim jo As JavaObject Return jo.InitializeStatic("javafx.scene.Cursor").GetField(Name) End Sub
BeneBarros Active Member Licensed User Longtime User May 28, 2015 #3 Erel said: Code: Copy MainForm.RootPane.MouseCursor = GetMouseCursor("V_RESIZE") Sub GetMouseCursor(Name As String) As Object Dim jo As JavaObject Return jo.InitializeStatic("javafx.scene.Cursor").GetField(Name) End Sub Click to expand... thank Erel Upvote 0
Erel said: Code: Copy MainForm.RootPane.MouseCursor = GetMouseCursor("V_RESIZE") Sub GetMouseCursor(Name As String) As Object Dim jo As JavaObject Return jo.InitializeStatic("javafx.scene.Cursor").GetField(Name) End Sub Click to expand... thank Erel