Just a simple question: What is missing in my code snippet to get the mouse
stopping at canvas/scrollarea border?
Code: Select all
OpenWindow(1, 10, 10, 1024, 768, "", #PB_Window_SystemMenu)
ScrollAreaGadget(1, 0, 0, WindowWidth(1), WindowHeight(1), 0, 0, 100)
CanvasGadget(2, 0, 0, WindowWidth(1), WindowHeight(1), #PB_Canvas_ClipMouse)
CloseGadgetList()
Repeat
Until WindowEvent()=#PB_Event_CloseWindow
I'm on Win7 x64 with PB 6.04 LTS(x64).#PB_Canvas_ClipMouse: Begrenzt die Maus auf das Gadget während eine Maus-Taste gedrückt ist. (Nicht auf MacOS und Linux Gtk3 unterstützt)