In a project, I want to display an arrow MouseCursor as Green if it is above an allowed Control, Red if not.
Is it possible to do that with Xojo ?
In a project, I want to display an arrow MouseCursor as Green if it is above an allowed Control, Red if not.
Is it possible to do that with Xojo ?
[quote=488493:@Emile Schwarz]In a project, I want to display an arrow MouseCursor as Green if it is above an allowed Control, Red if not.
Is it possible to do that with Xojo ?[/quote]
Are you looking for desktop or web? Web does have cursor options on each control. There’s a handful of built-in available cursors, but if you want a custom one you’ll need to do extra work
Desktop.
https://documentation.xojo.com/api/user_interface/desktop/mousecursor.html (don’t know if still valid, last updated 2018)
In colors ?
If Windows, I don’t think so because of this:
other targets, I don’t know.
Thanks.
hello Emile,
mein Test Emoji als Cursor
https://www.dropbox.com/s/oyir6ov5gen1a72/emojinr-Mcursor.xojo_binary_project?dl=1
mouseenter :
Var mycursorbild As New picture(32,32)
Var s As String
s=TextField5.value // Text.FromUnicodeCodepoint(128519) // Emoji or “A” or “??”
mycursorbild.Graphics.FontSize=30
mycursorbild.Graphics.DrawingColor = Color.green
mycursorbild.Graphics.drawtext(s,1,30)
Var mcu As New MouseCursor (mycursorbild, 20 , 20 )
Me.MouseCursor = mcu