RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMediaPlayer.DisplayRect Property

Specifies a rectangular area in the control specified by the Display property that is used to display output from a multimedia device.

Pascal
property DisplayRect: TRect;
C++
__property TRect DisplayRect;

To display output in a specific rectangle area on a form assign a TRect record to DisplayRect. The Rect function can be used to create a TRect record. 

Media that use a rectangle to display output usually perform best if the default DisplayRect size is used. To set DisplayRect to the default size, position the rectangle in the upper left corner and use 0, 0 for the lower right corner. 

DisplayRect is ignored if Display is nil (Delphi) or NULL (C++). 

Examples of multimedia devices that use a window to display output are Animation, AVI Video, Digital Video, Overlay, and VCR.

Note: DisplayRect can be set only after the media device is opened.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!