English
Source / code snippets

Countdown

 

CompileMarkSeparation
Source wurde am 15.07.2007 aus der MMJ-Quellcodesammlung (Dietmar Horn) in die Babyklappe auf XProfan.Com abgelegt:
Countdown
Lauffähig ab Profan-Version 5.0
Andreas Miethe * Juli 1998
***********************************************
Definitionen für die Zentrierung des Hauptfensters
DEF @ACenterx(1) sub(div(%maxx,2),div(@!(1),2))
DEF @ACentery(1) sub(div(%maxy,2),div(@!(1),2))
SetTruecolor 1
Windowstyle $30
Windowtitle Countdown
Window ACenterX(400),ACenterY(300)-400,300
CLS @rgb(192,192,192)
Usefont Arial,15,0,0,0,0
Setdialogfont 1

Proc Countdown

    Decimals 0                       keine Nachkommastellen
    Parameters Countdown%
    Declare Dlg%,Zeittext%,Zaehler%
    Let Zaehler%=1000                1000 = 1 Sekunde
    Let Dlg% = @CreateDialog(%Hwnd,Countdown,ACenterX(200),ACenterY(100),200,100)
    Let Zeittext% = @CreateText(Dlg%,,10,20,100,20)
    Settext Zeittext%,Add$(Add$(Noch ,Str$(Countdown%)), Sekunden)
    Die Schleife für den Countdown
    Dec Countdown%

    Whilenot Lt(Countdown%,0)

        SetTimer Zaehler%
        Waitinput

        If %wmtimer

            Settext Zeittext%,Add$(Add$(Noch ,Str$(Countdown%)), Sekunden)
            KillTimer
            Dec Countdown%

        Endif

    Endwhile

Endproc

Countdown 5
End
 
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

2.428 Views

Untitledvor 0 min.
Konverter04/01/24
Walter12/30/22
Heltal08/03/14
Georg Teles05/15/14
More...

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