TMediaPlayer position AVI centered within a TPanel?
Posted on 1998-10-21
Using Delphi 1... I am wondering if it is possible to center a AVI multimedia file within a TPanel component? For example, if I set the Display property of a TMediaPlayer component to a TPanel like the following :
MediaPlayer1.Display := Panel1;
...how can I position a loaded AVI file within the TPanel perfectly centered? It would be nice if the TPanel would resize automatically based upon the height and width of the AVI, just like the TBitmap.Autosize := True.