I am trying to draw some text on top of a MoviePlayer… so I put a transparent canvas on top of the MoviePlayer… and I draw the text in the paint event of the canvas…
The text does draw but no matter how I arrange the 2 controls the text is hidden by the movie…
Am I doing something wrong or do I need to figure another way?
What platform? Mac/Win/Linux?
You are unable to overlay a canvas on top of a movie player on Windows with pure Xojo code.
(and I’m positive it works on Mac)
#if targetMacOS then
The movie player is a special view, by default it punches a whole through the interface and directly interacts with the graphics card.
You might be able to get around this by enabling layer-backed views on the Window. I’m not at my work machine, so I don’t have the complete declares to hand, I’ll try to remember and share them when I can.
#pragma I don’t know.
It works with pure Xojo code and no declares on Mac.
Sorry, I should have mentioned this… Mac is all I need.
[quote=394887:@Tim Parnell]You are unable to overlay a canvas on top of a movie player on Windows with pure Xojo code.
(and I’m positive it works on Mac)[/quote]
It does not seem to work for me on my Mac.
[quote=394891:@Tim Parnell]It works with pure Xojo code and no declares on Mac.
Well I stand corrected, I was wrong. I also understand why I was wrong with my answer and for that I apologize.
I just created a simple project, with a movie player and overlaid a canvas, in the paint event of the canvas, I drew some text and it works on 32-Bit or 64-Bit ( 2017r3 on El Capitan ).
Try the simple project I just created. http://www.ohanaware.com/xojo/MovieTest.zip
If that works for you, then compare it to what you already have. If that doesn’t work for you, then please list what version of Xojo you are using and what version of the macOS.
OK… thanks to all… especially Sam…
The trick is to make sure that the canvas is a “child” of the movieplayer… so if you open the Tab Order Editor the canvas is not listed alone but under the movieplayer… and is only listed when opening the movieplayer disclosure triangle.