| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 612 人关注过本帖
标题:播放器语句问题!
只看楼主 加入收藏
xgy828
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2007-5-22
收藏
 问题点数:0 回复次数:0 
播放器语句问题!

高手帮忙把我下面发的一段代码的没一句的含义帮忙解释出来 急急急! 先谢谢了!

unit Main;

interface

uses
SysUtils, Windows, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, MPlayer, ExtCtrls, ComCtrls;

type
TMainForm = class(TForm)
OpenDialog1: TOpenDialog;
Panel1: TPanel;
TrackBar1: TTrackBar;
Button1: TButton;
MediaPlayer1: TMediaPlayer;
Timer1: TTimer;
procedure Button1Click(Sender: TObject);
procedure MediaPlayer1Notify(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
procedure MediaPlayer1Click(Sender: TObject; Button: TMPBtnType;
var DoDefault: Boolean);
procedure TrackBar1Change(Sender: TObject);
procedure Panel1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
opened: Boolean;
{ Private declarations }
public
{ Public declarations }
end;

var
MainForm: TMainForm;

implementation

{$R *.DFM}

procedure TMainForm.Button1Click(Sender: TObject);
begin
if OpenDialog1.Execute then
with MediaPlayer1 do
begin
Filename := OpenDialog1.Filename;
Open;
DisplayRect := Rect(0, 0, Panel1.Width, Panel1.Height);
Notify := true;
opened := true;
TrackBar1.Max := length;
end;
end;

procedure TMainForm.MediaPlayer1Notify(Sender: TObject);
begin
MessageDlg('Media control method executed', mtInformation, [mbOk], 0);
end;

procedure TMainForm.Timer1Timer(Sender: TObject);
begin
if opened then
TrackBar1.Position := MediaPlayer1.Position ;
end;

procedure TMainForm.MediaPlayer1Click(Sender: TObject; Button: TMPBtnType;
var DoDefault: Boolean);
begin

end;

procedure TMainForm.TrackBar1Change(Sender: TObject);
begin

end;

procedure TMainForm.Panel1Click(Sender: TObject);
begin

end;

procedure TMainForm.FormCreate(Sender: TObject);
begin

end;

end.

搜索更多相关主题的帖子: 播放器 语句 
2007-05-22 12:55
快速回复:播放器语句问题!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.026882 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved