Using Javascript from SpiderBasic
spidernet
 
Posts: 67
Joined: Tue Feb 02, 2016 3:50 pm

Changing the browser zoom level

by spidernet Sat Oct 29, 2016 1:23 pm

Hello,

Zoom works fine, but the mouse cursor doesn't follow the window when moving.
Did I forget something important?

Code: Select all
Procedure CloseWindowEvent()
  Debug "Closing window: " + EventWindow()
  CloseWindow(EventWindow()) ; Close the specific window
EndProcedure

OpenWindow(0, 100, 100, 320, 200, "Window 0 - Resizable", #PB_Window_SizeGadget)
OpenWindow(1, 500, 100, 320, 200, "Window 1")
OpenWindow(2, 100, 400, 320, 200, "Window 2")
!document.body.style.zoom="200%"

BindEvent(#PB_Event_CloseWindow, @CloseWindowEvent())
Return to Javascript

Who is online

Users browsing this forum: No registered users and 1 guest