RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMediaPlayer.Paint Method

Renders the image of the media player.

Pascal
procedure Paint; override;
C++
virtual __fastcall Paint();

When the media player component receives a WM_PAINT message, like other custom controls, it responds by initializing the control's canvas and calling Paint. Paint draws the frame and all visible buttons. 

When creating a descendant media player class, Paint can be overridden to draw the image of the corresponding media player object. 

 

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