Code : Tout sélectionner
If OpenWindow(0, 0, 0, 270, 160, "Popup", #PB_Window_SystemMenu | #PB_Window_Invisible)
CreateGadgetList(WindowID(0))
TextGadget(0, 10, 10, 250, 20, "TextGadget Standard (Left)")
TextGadget(1, 10, 70, 250, 20, "TextGadget Center", #PB_Text_Center)
TextGadget(2, 10, 40, 250, 20, "TextGadget Right", #PB_Text_Right)
TextGadget(3, 10, 100, 250, 20, "TextGadget Border", #PB_Text_Border)
TextGadget(4, 10, 130, 250, 20, "TextGadget Center + Border", #PB_Text_Center|#PB_Text_Border)
SystemParametersInfo_(#SPI_GETWORKAREA, #Null, area.Rect, 0)
GetWindowRect_(WindowID(0), rc.Rect)
x = area\right - (rc\right - rc\left)
y = area\bottom - (rc\bottom - rc\top)
ResizeWindow(0, x, y, #PB_Ignore, #PB_Ignore)
PlaySound_("SystemQuestion", #Null, #SND_ALIAS|#SND_ASYNC|#SND_NOWAIT)
AnimateWindow_(WindowID(0), 200, #AW_SLIDE|#AW_VER_NEGATIVE)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf