fb:porticula NoPaste
[GUI]Fenster bewegen(29 Zeilen,keine Types)
Uploader: | Westbeam |
Datum/Zeit: | 07.01.2011 21:03:56 |
Screen 12
Dim Shared As Integer mx,my,wx,wy,buttons,fenster
wx=100:wy=100
Do
Getmouse mx,my,,buttons
Screenlock
Cls
If fenster=0 Then
Line(wx,wy)-(wx+200,wy+80),15,BF
Elseif fenster=1 Then
Line(mx,my)-(mx+200,my+80),15,BF
wx=mx
wy=my
End If
Screenunlock
If buttons=1 Then
If mx>wx And my>wy And fenster=0 Then
fenster=1
Sleep 100
ElseIf fenster=1 Then
fenster=0
Sleep 100
End If
End If
Draw String(600,10),""&mx
Draw String(600,26),""&my
Sleep 1
Loop Until Inkey=Chr(27)
End