| Programming C# C++ (7) Delphi (617) .NET (2) Database (71) Delphi IDE (89) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280) Java (8) JavaScript (31) perl (9) php (4) VBScript (1) Visual Basic (1) |
Resizing and changing borderstyle of TMediaPlayer while a movie is playing
Question: Resizing the video display using the diaplayrec property of the mediaplayer is no problem, but if I try to change the borderstyle of the display form the movie stops playing.I am trying it with the following code snippet (assume the current borderstyle is bsSizeable): Any suggestions? Answer: When the switching the border on or off, the window is recreated so it has a new handle. I have solved the problem in the past by stopping the player before changing the border and restarting it after changing it.
Comments:
| |||||||||||||||||||||||