Autor Beitrag
D2505
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 62
Erhaltene Danke: 18


Delphi (7 PE + Lazarus ) ;Java ( Eclipse),
BeitragVerfasst: Mo 06.12.10 18:28 
hallo

ich habe folgende frage

bei meinem neuen programm in delphi 7 pe wollte ein gif bild als hintergrund haben nur wis ich nicht wie das gehen soll. :?:

Moderiert von user profile iconNarses: Überflüssige Zeilenumbrüche/Leerzeilen entfernt.
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 06.12.10 18:48 
Moin und :welcome: im Forum!

user profile iconD2505 hat folgendes geschrieben Zum zitierten Posting springen:
bei meinem neuen programm in delphi 7 pe wollte ein gif bild als hintergrund haben nur wis ich nicht wie das gehen soll.
Saug dir von hier die TGIFImage-Unit, installiere sie laut Anleitung und dann kann die TImage-Komponente auch GIF-Bilder laden. :idea: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
D2505 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 62
Erhaltene Danke: 18


Delphi (7 PE + Lazarus ) ;Java ( Eclipse),
BeitragVerfasst: Mo 06.12.10 18:54 
hi
ich mein an stelle von diesem grauen hintergrund ich weiß das es geht da mein ehm. inoformatik lehrer mir mal gezeigt hat
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 06.12.10 18:56 
Moin!

user profile iconD2505 hat folgendes geschrieben Zum zitierten Posting springen:
ich mein an stelle von diesem grauen hintergrund ich weiß das es geht da mein ehm. inoformatik lehrer mir mal gezeigt hat
Den Hintergrund kann man nicht soo einfach "wegmachen", aber du kannst ein TImage mit .Align := alClient und einem geladenen Bild "drüberlegen", dann sieht es so aus, wie du´s gerne hättest. :idea: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.

Für diesen Beitrag haben gedankt: D2505
D2505 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 62
Erhaltene Danke: 18


Delphi (7 PE + Lazarus ) ;Java ( Eclipse),
BeitragVerfasst: Mo 06.12.10 19:04 
hab ich , aber wie bekomme ich ein bild darein
sorry aber ich programier grade erst wieder seit 2 wochen habe dafor 2 jahre pause gemacht
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 06.12.10 19:25 
Moin!

user profile iconD2505 hat folgendes geschrieben Zum zitierten Posting springen:
hab ich , aber wie bekomme ich ein bild darein
Die TImage-Kompo anklicken, dann im Objekt-Inspektor die Eigenschaft "Picture" suchen, rechts in dem Feld ist eine Art "Button", da draufklicken, dann kann man ein Bild auswählen. :idea: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.

Für diesen Beitrag haben gedankt: D2505
D2505 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 62
Erhaltene Danke: 18


Delphi (7 PE + Lazarus ) ;Java ( Eclipse),
BeitragVerfasst: Mo 06.12.10 19:28 
und wie installire ich jetz diese gif unit da habe sie gedownloadet und aufgerufen
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19312
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 06.12.10 21:36 
Siehe FAQ...
Can you tell me how to install GifImage as a component in delphi 7?

// EDIT:
Oder du fügst die Unit einfach deinem Projekt hinzu und lädst das GIF zur Laufzeit.
D2505 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 62
Erhaltene Danke: 18


Delphi (7 PE + Lazarus ) ;Java ( Eclipse),
BeitragVerfasst: Di 07.12.10 17:57 
wie das einfach so :
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.Image1Click(Sender: TObject);
begin
load unit: GIFImage;
end;

end.


Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 07.12.10 18:12 
Moin!

Hm :? muss es denn unbedingt GIF sein? Geht nicht vielleicht auch JPG? :nixweiss: Das geht nämlich etwas einfacher. ;) :idea:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19312
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 07.12.10 18:12 
user profile iconD2505 hat folgendes geschrieben Zum zitierten Posting springen:
wie das einfach so :
procedure TForm1.Image1Click(Sender: TObject);
begin
load unit: GIFImage;
end;
Sorry, aber wenn du nicht das kleinste bisschen Delphi kannst, hat das keinen Sinn. Da hast du dir eindeutig schon zu viel vorgenommen. Fang lieber am Anfang an...

Einen sehr guten Crashkurs findest du hier:
crashkurs.christian-stelzmann.de
und die neue Version speziell ab Turbo Delphi:
www.christian-stelzm...shkurs_reloaded.html

Ein weiteres Online-Buch:
de.wikibooks.org/wik...grammierkurs:_Delphi

Hier speziell schau dir an wie uses benutzt wird (das steht in deinem automatisch erzeugten Quelltext auch schon drin).

Für diesen Beitrag haben gedankt: D2505
D2505 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 62
Erhaltene Danke: 18


Delphi (7 PE + Lazarus ) ;Java ( Eclipse),
BeitragVerfasst: Di 07.12.10 18:31 
danke habe es jetzt wie im tut beschrieben so eingefügt
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:
32:
33:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, unit GIFImage;

type
  TForm1 = class(TForm)
    Image1: TImage;
    procedure Image1Click(Sender: TObject);

  private
    { Private-Deklarationen }
    original:tbitmap
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Image1Click(Sender: TObject);
begin

end;

end.


Moderiert von user profile iconNarses: Anhang als inline-Code eingefügt.
platzwart
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1054
Erhaltene Danke: 78

Win 7, Ubuntu 9.10
Delphi 2007 Pro, C++, Qt
BeitragVerfasst: Di 07.12.10 19:29 
So steht das sicherlich nicht im Tut (zweites mal uses)...

_________________
Wissenschaft schafft Wissenschaft, denn Wissenschaft ist Wissenschaft, die mit Wissen und Schaffen Wissen schafft. (myself)
D2505 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 62
Erhaltene Danke: 18


Delphi (7 PE + Lazarus ) ;Java ( Eclipse),
BeitragVerfasst: Do 09.12.10 21:05 
user profile iconplatzwart hat folgendes geschrieben Zum zitierten Posting springen:
So steht das sicherlich nicht im Tut (zweites mal uses)...

wieso 2mal uses ?

user profile iconjaenicke hat folgendes geschrieben Zum zitierten Posting springen:

Hier speziell schau dir an wie uses benutzt wird (das steht in deinem automatisch erzeugten Quelltext auch schon drin).
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19312
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Do 09.12.10 21:08 
Naja, dass dein Versuch falsch ist, sagt dir Delphi ja beim Kompilieren.

Er meint das Wort unit innerhalb der uses Klausel.
D2505 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 62
Erhaltene Danke: 18


Delphi (7 PE + Lazarus ) ;Java ( Eclipse),
BeitragVerfasst: Sa 11.12.10 18:45 
user profile iconNarses hat folgendes geschrieben Zum zitierten Posting springen:


Saug dir von hier die TGIFImage-Unit, installiere sie laut Anleitung und dann kann die TImage-Komponente auch GIF-Bilder laden. :idea: ;)

cu
Narses

die hat bei mir nur fehler
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19312
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 11.12.10 18:50 
user profile iconD2505 hat folgendes geschrieben Zum zitierten Posting springen:
die hat bei mir nur fehler
Komisch, mein Delphi 7 PE auf dem Testrechner ist da anderer Meinung. Da hast du wohl wieder was falsch gemacht.

Aber ohne mehr Infos was passiert können wir natürlich auch nix dazu sagen (falls du das ernsthaft erwartet hattest)... :nixweiss:
D2505 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 62
Erhaltene Danke: 18


Delphi (7 PE + Lazarus ) ;Java ( Eclipse),
BeitragVerfasst: Sa 11.12.10 21:30 
kann ich es auch als neue komponente einfügen ?
weil da sagt er fehler interface erwartet aber const gefunden und 100 anderer fehler

Moderiert von user profile iconMartok: Doppelposting zusammengeführt.

welch version hast du den ich habe gifimaged2010b
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19312
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 11.12.10 23:57 
user profile iconD2505 hat folgendes geschrieben Zum zitierten Posting springen:
kann ich es auch als neue komponente einfügen ?
Nein, denn es ist nun einmal keine visuelle Komponente...
Es reicht die Unit dem Projekt hinzuzufügen, dann kannst du zur Laufzeit GIFs laden.

Du kannst aber schon auch die Unit in ein Package packen und es installieren. Dann kennt das normale TImage auch in Delphi selbst GIFs. Aber einfacher ist der erste Weg.

Und ich habe die selbe Version, ja...

Was genau :roll: kommen denn für Fehler und an welcher Stelle? Und was hast du da genau gemacht?
D2505 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 62
Erhaltene Danke: 18


Delphi (7 PE + Lazarus ) ;Java ( Eclipse),
BeitragVerfasst: Di 14.12.10 17:46 
dann nehme ich lieber doch ein unterstüztes datei format