English
Source / code snippets

produce Lauftext - 2

 

CompileMarkSeparation
Source wurde am 15.07.2007 aus der MMJ-Quellcodesammlung (Dietmar Horn) in die Babyklappe auf XProfan.Com abgelegt:
Lauftext erzeugen (2)
(C) 2007 David iF Strutz, http://xprofan.com
DECLARE __cf1&
Def __cf1(2) !KERNEL32,GetProcAddress
Def __cf2(1) !KERNEL32,GetModuleHandleA
__cf1&=__cf1(__cf2(gdi32.dll),GetTextExtentPoint32A)
WINDOWSTYLE 80
CLS
SHOWMAX
MCLS %MAXX,%MAXY
STARTPAINT -1
USEFONT Arial,100,0,0,0,0
TEXTCOLOR 0,-1
var TWIDTH&=TEXTWEITE(Hallo Welt,0)
ENDPAINT
var SCROLLWIDTH&=%MAXX+TWIDTH&

WHILENOT ISKEY(27)

    STARTPAINT -1
    CLS $00FFFFFF
    DRAWTEXT %MAXX-MOD(&GETTICKCOUNT/10,SCROLLWIDTH&),100,Hallo Welt
    ENDPAINT
    MCOPYBMP 0,100 - %MAXX,100>0,100;0

ENDWHILE

end

proc TEXTWEITE

    PARAMETERS T$,PRT_CTL%
    DECLARE Z$,ADR&,ADR1&,LENG&
    LET Z$=000000
    LET ADR&=@IF(@LT$(@LEFT$($PROFVER,1),7),@ADD(@ADDR(T$),1),@ADDR(T$))
    LET ADR1&=@IF(@LT$(@LEFT$($PROFVER,1),7),@ADD(@ADDR(Z$),1),@ADDR(Z$))
    call(__cf1&,%HDC,ADR&,@LEN(T$),ADR1&)
    LET LENG&=@LONG(ADR1&,0)
    LET LENG&=@IF(@EQU(PRT_CTL%,1),(@LONG(ADR1&,0)/10),@LONG(ADR1&,0))
    RETURN LENG&

endproc

 
07/16/07  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.476 Views

Untitledvor 0 min.
Julian Schmidt05/20/11
Heiko Dix01/25/11

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie