Autor Beitrag
Massiv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 93



BeitragVerfasst: Di 17.03.09 16:13 
Hallo

wie kann ich Animierte-Gifs in Delphi 7 anzeigen lassen?
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Di 17.03.09 16:49 
das kannst du unter anderem mit den komponenten der jvcl.

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Massiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 93



BeitragVerfasst: Di 17.03.09 17:00 
und die bekomm ich wo?
Bob Murphy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 91

XP, Ubuntu
Delphi 7 SE, Delphi 2007
BeitragVerfasst: Di 17.03.09 17:02 
Oder du lädst dir einfach "GifImage.pas" runter und installierst es. Danach brauchste nur noch bei "uses" "GifImage" hinzufügen.
Massiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 93



BeitragVerfasst: Mi 18.03.09 20:39 
Bob Murphy
Hey bei mir kommt son Gifimage.dcu file aufm desktop, muss ich die datei auch irgendwo reinpacken weil delphi unterstützt immer noch keine Gif dateien

ps: wenn ich Image aus zusätlich wähle und dann als code reinschreibe: Image1.picture.loadfromfile('....Der Pfad...') und dann auf start drücke dann kann ich das programm nicht mehr schliessen und das bild erscheint nicht
Dude566
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1592
Erhaltene Danke: 79

W8, W7 (Chrome, FF, IE)
Delphi XE2 Pro, Eclipse Juno, VS2012
BeitragVerfasst: Mi 18.03.09 20:48 
user profile iconMassiv hat folgendes geschrieben Zum zitierten Posting springen:

ps: wenn ich Image aus zusätlich wähle und dann als code reinschreibe: Image1.picture.loadfromfile('....Der Pfad...') und dann auf start drücke dann kann ich das programm nicht mehr schliessen und das bild erscheint nicht


Was heist denn "aus zusätzlich"? Hast du es im OnCreate stehen? Oder wie rufst du es auf?

_________________
Es gibt 10 Gruppen von Menschen: diejenigen, die das Binärsystem verstehen, und die anderen.
Bob Murphy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 91

XP, Ubuntu
Delphi 7 SE, Delphi 2007
BeitragVerfasst: Mi 18.03.09 20:51 
Die Datei "GifImage.dcu" kannste einfach in den "Lib" Ordner packen. Zu finden unter "\Programme\Delphi\Lib".
Massiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 93



BeitragVerfasst: Mi 18.03.09 20:52 
[zitat]Was heist denn "aus zusätzlich"? Hast du es im OnCreate stehen? Oder wie rufst du es auf?[/zitat]

Ja oben in der leiste gibts ja die ganzen dinge wie z.B. Standad, zusätslich, Win32,System, diagloge etc. und aus "zusätlich habe ich die komponente(oder wie man das auch sagt) Image auf dem Form 1 getan
Massiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 93



BeitragVerfasst: Mi 18.03.09 20:57 
Hmmm... das problem besteht immer noch, dass wenn ich ein bild mit dem code lade da nix passiert und ich die anwendung nicht mehr schliessen kann, also es hängt
wenn ich aber Bmp bilder lade funt alles wieder
Bob Murphy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 91

XP, Ubuntu
Delphi 7 SE, Delphi 2007
BeitragVerfasst: Mi 18.03.09 21:01 
Du hast aber die Datei GifImage.pas schon installiert ja? (Unter Komponenten\ Komponenten installieren)
Ansonsten zeig mal dein ganzen Quellcode.
Massiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 93



BeitragVerfasst: Mi 18.03.09 21:06 
Ja hab ich schon
und hier mein quellcode, ich hab eingentlich nur delphi neu gestartet und nur ausprobiert b image laäfut mit GIF mehr hab ich im Programm nicht dren egal schaut euchs an:

ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, GifImage, ExtCtrls;

type
  TForm1 = class(TForm)
    Image1: TImage;
    procedure Image1Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Image1Click(Sender: TObject);
begin
image1.Picture.LoadFromFile('C:\Dokumente und Einstellungen\Besitzer\Desktop\Musik19.gif');
end;

end.
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Mi 18.03.09 21:10 
Du weißt aber schon, dass GIF-Dateien die Endung .gif haben? :gruebel:

edit: OK, jetzt hast du's editiert.
Dude566
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1592
Erhaltene Danke: 79

W8, W7 (Chrome, FF, IE)
Delphi XE2 Pro, Eclipse Juno, VS2012
BeitragVerfasst: Mi 18.03.09 21:11 
Das Zusätzlich was du meinst ist die Komponentenleiste, und wieso verwendest du im Quelltext ein bmp wenn du gif willst?

Ich bin wahrscheinlich schon übermüdet aber ich werde aus deinen Posts nicht schlau. :roll:

Edit: Oh Jakob_Ullman haste auch verarscht.^^

_________________
Es gibt 10 Gruppen von Menschen: diejenigen, die das Binärsystem verstehen, und die anderen.
Massiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 93



BeitragVerfasst: Mi 18.03.09 21:13 
Sorry hatte falschen quelltext aber jetzt isse richtig^^
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Mi 18.03.09 21:13 
@Dude566: ich auch nicht. :lol:

Ne, also ich glaube, wenn du mal drauf achtest, was deine Finger wirklich tippen, und ein paar Kommas setzt, wird dein Satz verständlicher, sodass man ihn nach 3-mal Lesen evtl. entschlüsselt hat. :roll:
Dude566
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1592
Erhaltene Danke: 79

W8, W7 (Chrome, FF, IE)
Delphi XE2 Pro, Eclipse Juno, VS2012
BeitragVerfasst: Mi 18.03.09 21:19 
Ja es ergibt für mich jetzt wirklich keinen Sinn, wo jetzt genau das Problem liegen könnte.

_________________
Es gibt 10 Gruppen von Menschen: diejenigen, die das Binärsystem verstehen, und die anderen.
Bob Murphy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 91

XP, Ubuntu
Delphi 7 SE, Delphi 2007
BeitragVerfasst: Mi 18.03.09 21:23 
Du bekommst nicht zufällig die Fehlermeldung: "Invalid GIF signature" ?
Wenn ja dann such dir bei Google oder so mal eine andere .gif Datei, kann sein das mit deiner .gif Datei etwas nicht stimmt.
Massiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 93



BeitragVerfasst: Mi 18.03.09 21:27 
Da kommt überhaupt keine fehlermdeldung sondern ich kann in Form1, wenn ichs gestartet ´haben, nix mehr machen, noch nicht einmal auf schliessen drücken.
Ps: hab die GifImage datei aus dieser seite www.koders.com/delph...29E94FC603F1807.aspx
Dude566
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1592
Erhaltene Danke: 79

W8, W7 (Chrome, FF, IE)
Delphi XE2 Pro, Eclipse Juno, VS2012
BeitragVerfasst: Mi 18.03.09 21:30 
Dann mach es mal nicht in das OnCreate, sondern in eine andere Prozedur.

_________________
Es gibt 10 Gruppen von Menschen: diejenigen, die das Binärsystem verstehen, und die anderen.
Massiv Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 93



BeitragVerfasst: Mi 18.03.09 21:38 
Habs mit doppelklick versucht geht auch nicht