Autor Beitrag
Biarchiv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: So 16.04.06 11:36 
Hallo,

ich hab mal AVI Videos im TMediaPlayer abgespielt.
Nur plötzlich hat dieser ein eigene Form über der normalen Form mit einem eigenen Dialogfenster.
Sowie bei Windows Fenster halt.

Ich hab nehmlich die Form die das Video anzeigen soll, maximiert sowie keine Title-Leiste anzeigen werden, damit ich auf einen komplett schwarzen Bildschirm komme wo dieses AVI Video angezeigt werden soll.
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: So 16.04.06 11:51 
Ich verstehe dein Problem zwar noch nicht wirklich (-->Formulierung) aber so wie es mir scheint, willst du mit dem TMediaPlayer FullScreen etwas abspielen.
Wie man die Form auf die gesamte Breite des Bildschirmes ausbreitet, weißt du, denk ich, ansonsten:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
form1.BorderStyle := bsNone;
Form1.top := 0;
Form1.left := 0;
Form1.Width := screen.width;
Form1.height := screen.height;


Jetzt packst noch einen Nachfahren von TWinControl auf diese Form, mit align = alClient.
Ich hab da gute Erfahrungen mit einem TWebbrowser gemacht, ich kann dir zwar net genau sagen, warum es bei dem so gut klappt (Betreff: Neuzeichnen des Bildes, wenn ein Teil verdeckt war), aber bei mir hats gut geklappt.
Beim MediaPlayer trägst du in die Property Display noch diese Komponente ein, also hier z.B. Webbrowser1 oder wie du ihn genannt hast.

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN