Salut à Tous ,
je suis à la recherche d'un code qui rend les fenêtres collante comme avec
winamp . il me semblait l'avoir vu mais je ne le retrouve pas
Merci d'Avance
Michel
J'ai besoin d'un petit renseignement
-
Heis Spiter
- Messages : 1092
- Inscription : mer. 28/janv./2004 16:22
- Localisation : 76
- Contact :
Suffit de faire comme ça...
Code : Tout sélectionner
If OpenWindow(1, 0, 0, 100, 100, #PB_Window_ScreenCentered | #PB_Window_SystemMenu, "Collante")
Repeat
ExamineDesktops()
event = WindowEvent()
If WindowX() < 50
MoveWindow(0, WindowY())
EndIf
If WindowY() < 50
MoveWindow(WindowX(), 0)
EndIf
If WindowX() > DesktopWidth(0)-50-WindowWidth()
MoveWindow(DesktopWidth(0)-WindowWidth()-7, WindowY())
EndIf
Debug WindowY()
If WindowY() > DesktopHeight(0)-50-WindowHeight()
MoveWindow(WindowX(), DesktopHeight(0)-WindowHeight()-27)
EndIf
Until Event = #PB_EventCloseWindow
EndIf
EndHeis Spiter, webmaster du site http://www.heisspiter.net
Développeur principal et administrateur du projet Bird Chat
Parti courir au bonheur du dév. public et GPL
Développeur principal et administrateur du projet Bird Chat
Parti courir au bonheur du dév. public et GPL
-
Le Soldat Inconnu
- Messages : 4312
- Inscription : mer. 28/janv./2004 20:58
- Localisation : Clermont ferrand OU Olsztyn
- Contact :