English
Experimente

Textscroller (Profan-5-Original of Gerhard Putschalka, adaptiert for XProfan)

 

p.specht

Author d. Originals ex Profan 5: Gerhard Putschalka, sh. its Homepage  [...] 
Adaptiert for XProfan-11.2a by p.woodpecker(at)gmx.at
Window Title "Endlich one half-way guter Textscroller!   terminate with ESC-Button!"
' Author the Profan 5-Originals: Gerhard Putschalka
' OHNE GEWÄHR! PRIVATE DEMO ONLY!
' so well - it consist presumably rights Third!
Window Style 24:Window 0,0 - %maxx,220
Cls $A0A0A0
Declare outptxt$,twidth&,scrollwidth&,texthöhe&,obererrand&
outptxt$="Hello World!       Hello World!       Huhu!      "+\
"   finally one Scroller, the this names too earn! "
Texthöhe&=100
ObererRand&=50
MCls width(%hwnd),height(%hwnd)
startpaint -1
usefont "Arial",texthöhe&,0, 1,1,0
textcolor rgb(255,255,0),-1
twidth& = TextWeite(outptxt$, 0)
endpaint
scrollwidth& = width(%hwnd)+twidth&

whilenot iskey(27)

    startpaint -1
    cls rgb(0,0,255)
    textcolor rgb(255,255,0),-1
    drawtext width(%hwnd)-((&gettickcount/10) mod scrollwidth&),100, outptxt$
    endpaint
    mcopybmp 0,100 - width(%hwnd)-20,100 > 10,obererrand&;0

Endwhile

End

Proc TextWeite'Author d. Originals ex Profan 5: Gerhard Putschalka

    Parameters T$,Prt_Ctl%
    Declare Z$,Adr&,Adr1&,Leng&
    Z$="000000":Adr& = Addr(T$):Adr1& = Addr(Z$)
    External("gdi32.dll","GetTextExtentPoint32A",%HDC,Adr&,Len(T$),Adr1&)
    Leng& = Long(Adr1&,0)
    Leng& = If(Prt_Ctl%=1,Long(Adr1&,0)/10, Long(Adr1&,0))
    Return Leng&

ENDPROC

 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/24/21  
 



Zum Experiment


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

877 Views

Untitledvor 0 min.
Gast.081508/21/24
Member 862464104/20/24
H.Brill02/05/22
Ernst07/21/21
More...

Themeninformationen

this Topic has 1 subscriber:

p.specht (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