Lol… I know… I prefer Y at top… Swift/Xcode has places where its top , and places where its bottom
You’re right, it works with negating the y coordinate. How strange! Thanks @Kem Tekinay. It sounds like we’ll need to have an #If TargetMacOS block that negates the y coordinate and on Windows it uses the normal positive coordinate.
That is PostScript. 0,0 in PostScript means bottom/left (if I recall correctly).
To be clear, I do not really care where 0,0 really is if its position is noted in the LR (same apply for 0-based and 1-based values).
BUT, if everyone use the same and consistent values, I will be happy too (prefered).
Well now this is odd:
-
I just tried tooltip with 2018r1.1 using 64-bit under macOS Mavericks and it works OK (in the debugger, at least). Must try HS next.
-
I didn’t need to negate the Y-coordinate.
I had this code in the mouseenter event for a bevelbutton:
Tooltip.Show (buttonTag1, MouseX, MouseY, true)
with a tooltip.hide()
in the mouseexit event.
(I also set the helptag for this button in code in the open event, FWIW.)
the “bug” has been corrected in the next xojo version. you don’t need to negate Y