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: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57:
| unit Thread_Source;
interface
uses Classes, Windows, Messages, SysUtils, Graphics, Controls, Forms, Dialogs;
type TMyThread = class(TThread) private procedure DoSomething; protected procedure Execute; override; public end;
implementation
uses Volumen1;
procedure VOLUME (...);stdcall; external 'volume.dll' name '_VOLUME@52';
procedure TMyThread.Execute; begin DoSomething(); end;
procedure TMyThread.DoSomething; const ..... var ..... begin ..... volume(lauf,@x,@y,@f,vmin,vmax,vmean,vol,@w,lw,@iw,liw,ifail);
if ifail<>0 then begin ..... end else begin form1.JvGIFAnimator3.visible:=false; form1.JvGIFAnimator3.JvxAnimate:=false;
form1.Button6.visible:=true;
--> form1.edit1.width:=(length(trim(floattostrf(vol,fffixed,12,2))))*10+90; --> form1.edit1.visible:=true; --> form1.edit1.text:=meldung18+trim(floattostrf(vol,fffixed,12,2))+' cbm'; --> form1.Edit2.Text:=trim(floattostrf(vol,fffixed,12,2)); .....
end; end; end. |