Verfasst: 14.11.2007 21:15
jaa genau so, nur das problem ist halt dass wenn ich da am code was änder, dann geht das in der mitte auf und verschwindet unten 

Das deutsche PureBasic-Forum
https://www.purebasic.fr/german/
Code: Alles auswählen
EnableExplicit
ExamineDesktops()
OpenWindow(0, 0, 0, DesktopWidth(0), DesktopHeight(0)/2, "AND51", #PB_Window_BorderLess|#PB_Window_Invisible)
CreateGadgetList(WindowID(0))
ButtonGadget(0, 50, 50, 200, 50, "Close", #PB_Button_Default)
; get the right location for the window. therefore, we get the WORKAREA-coords
Define winpos.RECT
SystemParametersInfo_(#SPI_GETWORKAREA, 0, @winpos, 0)
; Show the window
;AnimateWindow_(WindowID(0), 1500, #AW_VER_POSITIVE) ; Roll up
AnimateWindow_(WindowID(0), 500, #AW_VER_POSITIVE|#AW_SLIDE) ; Slide up
; Wait for closing the window
Repeat : Until WaitWindowEvent() = #PB_Event_Gadget And EventGadget() = 0
; Hide the window
; AnimateWindow_(WindowID(0), 1500, #AW_VER_POSITIVE|#AW_HIDE) ; Roll down
AnimateWindow_(WindowID(0), 500, #AW_VER_NEGATIVE|#AW_SLIDE|#AW_HIDE) ; Slide down