Autor Beitrag
fcg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 360

WinXP
D3 Prof, D6 Pers
BeitragVerfasst: Fr 16.05.03 19:30 
hi @ all

geht dat irgendwie? Ich möchte über Image.Picture.LoadFromFile ein kb Anzahl sehr großes Image laden. Nun möchte ich den "Ladevortschritt" in einer Progressbar anzeigen.

thÄnxX

fcg

_________________
.: Wer für alles offen ist, kann nicht ganz dicht sein! :.
Mike_C
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 207

Win XP
D7 Enterprise
BeitragVerfasst: Sa 17.05.03 16:52 
fcg hat folgendes geschrieben:


Ich möchte über Image.Picture.LoadFromFile ein kb Anzahl sehr großes Image laden. Nun möchte ich den "Ladevortschritt" in einer Progressbar anzeigen.


Also ich versuche mal dein Problem zu übersetzen:

Du hast ein sehr großes Bild, das du in ein Image laden möchtest. Den Ladenvortschritt willst du mit einer Proressbar anzeigen. Richtig?

Nun direkt über Image.Picture.LoadFromFile wird das wohl nicht gehen. Was du aber machen könnest ist folgendes:

Du schaust dir im Delphi Sourcecode an, wie die Prozedur LoadFromFile geschrieben ist. Dann schreibst du dir genau nach dem Muster eine eigene Laden-Routine und bindest da deine Progressbar ein. Ich hab mir die Procedure noch nicht angeschaut, aber ich vermute, dass da in irgendeiner Weise eine Schleife (for, while, repeat) eingebaut ist. in die musst du dich reinhängen und am ende von einem Durchgang die Progressbar updaten. Als Max-Value nimmst du am besten die Dateigröße (die bekommst du über FileSize). Naja im notfall das Forum nochmal fragen oder mal in der Hilfe nachschauen. vielleicht findet man das was.

_________________
Life is, what some people call a mystery. To me life's just a lesson, you're learning when you're through. So why do we try to understand?
Mike_C
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 207

Win XP
D7 Enterprise
BeitragVerfasst: Sa 17.05.03 17:03 
Es ist einfacher als gedacht:

ein TImage-Object hat ein OnProgress-Event. darüber gehts...

_________________
Life is, what some people call a mystery. To me life's just a lesson, you're learning when you're through. So why do we try to understand?