English
Source / code snippets

moving Window Text - 2

 

CompileMarkSeparation
Source wurde am 15.07.2007 aus der MMJ-Quellcodesammlung (Dietmar Horn) in die Babyklappe auf XProfan.Com abgelegt:
Fenster: Text im Fenster bewegen
Def @CSleep(1) !KERNEL32,Sleep

Proc moveText

    Declare way%
    Parameters frompos%,topos%,delays%,txt$
    let way%=0

    Whilenot equ(way%,topos%)

        textcolor rgb(0,0,255),-1
        StartPaint GetActiveWindow()
        DrawText frompos%,20,txt$
        EndPaint
        @CSleep(delays%)

        ifnot equ(way%,topos%-1)

            textcolor getpixel(frompos%-1,20),getpixel(frompos%-1,20)
            StartPaint GetActiveWindow()
            DrawText frompos%,20,txt$
            EndPaint

        endif

        dec frompos%
        inc way%

    Wend

EndProc

Proc FlyText

    Declare way%,fly%
    Parameters frompos%,topos%,delays%,txt$
    let fly%=20
    let way%=0

    Whilenot equ(way%,topos%)

        textcolor rgb(0,0,255),-1
        StartPaint GetActiveWindow()
        DrawText frompos%,fly%,txt$
        EndPaint
        @CSleep(delays%)

        ifnot equ(way%,topos%-1)

            textcolor getpixel(frompos%-1,fly%),getpixel(frompos%-1,fly%)
            StartPaint GetActiveWindow()
            DrawText frompos%,fly%,txt$
            EndPaint

        endif

        dec frompos%
        inc way%
        case mod(frompos%,5):inc fly%

    Wend

EndProc

Beispiel
Settruecolor 1
Cls Rgb(0,255,0)
textcolor rgb(0,0,255),-1
UseFont Arial,30,0,0,0,0
moveText 550,500,10,Wenn ich stehe drücke eine Taste
waitinput
textcolor rgb(0,0,255),-1
UseFont Arial,40,0,0,0,0
flyText 550,450,10,Copyright by Dieter Zornow
s4 href='./../../function-references/XProfan/waitinput/'>waitinput
 
07/15/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.723 Views

Untitledvor 0 min.
Gast.081508/25/24
Peter Max Müller09/29/12
Frank Vorholzer02/05/12

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