Autor Beitrag
teamwkl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37



BeitragVerfasst: So 14.08.05 11:56 
Hallo zusammen!

Ich hab mal eine Frage....und zwar moechte ich ein ein variables Bild laden (*.bmp) was davon abhaengig ist welche Auswahl in der Listbox zuvor getroffen wurde.
Die Inhalte der Listbox werden aus einer ini Datei gelesen wo es auch einen Key fuer den Namen des bildes gibt.

Ich habe es mit TBitmap probiert....nur wird mir da das Bild nicht zentriert angezeigt, also ein Teil verschiebt sich nach oben und kommt unten wieder rein ins Feld.
Ausserdem sobald man die Anwendung einmal im Hintergrund hat (z.B. oeffnet man nebenbei den Explorer, klickt dann aber wieder die Anwendung an um sie zurueck in den Vordergrund zu holen) verschwindet die Grafik

Bitte um Hilfe waere sehr nett :)
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: So 14.08.05 12:31 
TImage?
teamwkl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37



BeitragVerfasst: So 14.08.05 12:38 
Hab ich schon versucht...nur wie kann ich bei TImage ein bild laden das z.b. im ordner pictures liegt und den namen XXXX hat (der name ist abhaengig von der auswahl in der listbox) ???
konnte bis jetzt nur ein festes bild zuweisen und das will ich ja gerade nicht, da die ini datein ja geupdaten werden sollen spaeter
ebs
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 213

Suse Linux 9.2, Win 98, Win NT, Win XP, Win for Workgroups, Win XP SP2, Dos 6.1
D3 Prof, D2005 PE, Delphi 2006 Prof.
BeitragVerfasst: So 14.08.05 13:03 
ausblenden Delphi-Quelltext
1:
Image1.LoadfromFile('C:\pictures\xxx.jpg');					


[2. Beitrag]
Mist, falsch :(
Nochmal:
ausblenden Delphi-Quelltext
1:
Image1.Picture.LoadFromFile('C:\pictures\xxx.jpg');					


Moderiert von user profile iconraziel: Beiträge zusammengefasst.
teamwkl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37



BeitragVerfasst: So 14.08.05 13:28 
Bei mir kommte die fehlermeldung das TImage kein element names LoadFromFile enthaelt

Entschuldig das Update vom Vorletzten Post nicht gesehen....es geht danke fuer eure muehe

Moderiert von user profile iconraziel: Beiträge zusammengefasst.
ebs
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 213

Suse Linux 9.2, Win 98, Win NT, Win XP, Win for Workgroups, Win XP SP2, Dos 6.1
D3 Prof, D2005 PE, Delphi 2006 Prof.
BeitragVerfasst: So 14.08.05 13:50 
Soll ich dir jetzt noch Quelltext schicken, und wozu die PN?
Das ganze geht schließlich jeden was an :wink:
teamwkl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37



BeitragVerfasst: So 14.08.05 14:33 
Nein danke hat sicher durch dein 2. beitrag erledigt :D