Hi Dude
Previous post updated
Copy & Paste you know
More exams.
# 1:
Code: Select all
Global flag,Desktop.RECT,desktopw
SystemParametersInfo_(#SPI_GETWORKAREA, 0, @Desktop.RECT, 0)
desktopw = GetSystemMetrics_(#SM_CXSCREEN)
Procedure animate(par)
Repeat
If flag = 1 And IsWindow(0)
flag = 0
ResizeWindow(0,desktopw-405,Desktop\bottom - 145,400,140)
For OP = 0 To 255
SetLayeredWindowAttributes_(WindowID(0),0,OP,#LWA_ALPHA)
Delay(15)
Next
Delay(2500)
For OP = 255 To 0 Step -1
SetLayeredWindowAttributes_(WindowID(0),0,OP,#LWA_ALPHA)
Delay(15)
Next
ResizeWindow(0,-405,Desktop\bottom - 145,400,140)
EndIf
ForEver
EndProcedure
LoadFont(0,"broadway",14)
OpenWindow(0,-405,Desktop\bottom - 145,400,140,"Test",#WS_BORDER|#WS_POPUP)
SetWindowLongPtr_(WindowID(0),#GWL_EXSTYLE,#WS_EX_LAYERED)
SetLayeredWindowAttributes_(WindowID(0),0,0,#LWA_ALPHA)
StickyWindow(0,1)
ImageGadget(0,0,0,400,140,0,#PB_Image_Border)
CreateImage(0,400,140,24)
StartDrawing(ImageOutput(0))
DrawingFont(FontID(0))
DrawingMode(#PB_2DDrawing_Transparent )
Box(0,0,400,140,$FDA701)
DrawText(100,50,"Hi it is just a test",$01F0FD)
StopDrawing()
SetGadgetState(0,ImageID(0))
thread = CreateThread(@animate(),30)
Repeat
Select WaitWindowEvent()
Case #WM_KEYDOWN
If EventwParam() = 27
End
ElseIf EventwParam() = 9
flag = 1
EndIf
EndSelect
ForEver
End
#2 :
Code: Select all
Global flag,Desktop.RECT,desktopw
SystemParametersInfo_(#SPI_GETWORKAREA, 0, @Desktop.RECT, 0)
desktopw = GetSystemMetrics_(#SM_CXSCREEN)
Procedure animate(par)
Repeat
If flag = 1 And IsWindow(0)
flag = 0
For x = 0 To 405
ResizeWindow(0,desktopw-x,Desktop\bottom - 145,400,140)
Delay(5)
Next
Delay(2500)
For x = 405 To 0 Step -1
ResizeWindow(0,desktopw-x,Desktop\bottom - 145,400,140)
Delay(5)
Next
EndIf
ForEver
EndProcedure
LoadFont(0,"broadway",14)
OpenWindow(0,desktopw,Desktop\bottom - 145,400,140,"Test",#WS_POPUP)
StickyWindow(0,1)
ImageGadget(0,0,0,400,140,0,#PB_Image_Border)
CreateImage(0,400,140,24)
StartDrawing(ImageOutput(0))
DrawingFont(FontID(0))
DrawingMode(#PB_2DDrawing_Transparent )
Box(0,0,400,140,$FDA701)
DrawText(100,50,"Hi it is just a test",$01F0FD)
StopDrawing()
SetGadgetState(0,ImageID(0))
thread = CreateThread(@animate(),30)
Repeat
Select WaitWindowEvent()
Case #WM_KEYDOWN
If EventwParam() = 27
End
ElseIf EventwParam() = 9
flag = 1
EndIf
EndSelect
ForEver
End