J'arrive bien a tester #PB_Event_SizeWindow pour action a accomplir en cas de redimensionnement de la fenetre.
posix = WindowHeight() reprend bien sa nouvelle valeur mais apres je cale!
je suis bien allé voir du coté de MoveWindow et ResizeWindow... mais je ne vois plus ce que je dois faire. si qq'un peut m'aider svp.
Code : Tout sélectionner
Enumeration
#Window_0
#Button_0
EndEnumeration
taillex= 200
tailley = 200
posix = 100
posiy = 100
;
;
;
;
If OpenWindow ( #Window_0 , posix, posiy, taillex, tailley, #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar , "Compteur Atouts" )
If CreateGadgetList ( WindowID ())
ButtonGadget ( #Button_0 , taillex-30, posiy, 30, 30, "clic" )
EndIf
Repeat
Select WaitWindowEvent () ;
Case #Button_0 ;
a=2
Case #PB_Event_CloseWindow ;
Quit=1
Case #PB_Event_SizeWindow ; je teste quand la taille de la fenetre est modifiée
posix = WindowHeight()
; MoveWindow(FenetreX_PositionOrigine, FenetreY_PositionOrigine)
; ResizeWindow(posix, posiy)
EndSelect
Until Quit=1
EndIf