Yop,
It seems To be a bug with WindowX. WindowY seems good. (WINDOWS 10 x64 test)
It only move to the right and to 6px instead of 1px.
Code: Select all
#GOTOP = 1
#GODOWN = 2
#GOLEFT = 3
#GORIGHT = 4
OpenWindow(165,0,0,80,80,"",#PB_Window_BorderLess|#WS_SIZEBOX|#PB_Window_ScreenCentered)
StickyWindow(165,#True)
AddKeyboardShortcut(165,#PB_Shortcut_Up,1)
AddKeyboardShortcut(165,#PB_Shortcut_Down,2)
AddKeyboardShortcut(165,#PB_Shortcut_Left,3)
AddKeyboardShortcut(165,#PB_Shortcut_Right,4)
Repeat
Event = WaitWindowEvent()
Select Event
Case #PB_Event_Menu
; just a check
WX = WindowX(165) : WY = WindowY(165)
Select EventMenu()
Case #GOTOP
ResizeWindow(165,#PB_Ignore,WY-1,#PB_Ignore,#PB_Ignore)
Case #GODOWN
ResizeWindow(165,#PB_Ignore,WY+1,#PB_Ignore,#PB_Ignore)
Case #GOLEFT
ResizeWindow(165,WX-1,#PB_Ignore,#PB_Ignore,#PB_Ignore)
Case #GORIGHT
ResizeWindow(165,WX+1,#PB_Ignore,#PB_Ignore,#PB_Ignore)
EndSelect
;Problem here for left and right
Debug Str(wx) + " x " + Str(wy)
EndSelect
Until Event=#PB_Event_CloseWindow
End