Thank you for this tip, Peter.
I was just looking for something like this.
I wanted to use your code to resize the debug window, but unfortunately you have to enlarge the window manually every time, because the editor gadget in the debug windows is not resized.
I have now created the following code to resize the debugwindow.
Code: Select all
! spider_ResizeWindow(spider.debug.window, 10, 10, 1024, 800)
! spider_ResizeGadget(spider.debug.editorGadget, 5, 5, spider_WindowWidth(spider.debug.window) - 10, spider_WindowHeight(spider.debug.window) - 10)
Or set it to fullscreen:
Code: Select all
! spider_ResizeWindow(spider.debug.window, 0, 0, spider_DesktopWidth(0), spider_DesktopHeight(0))
! spider_ResizeGadget(spider.debug.editorGadget, 5, 5, spider_WindowWidth(spider.debug.window) - 10, spider_WindowHeight(spider.debug.window) - 10)
If the big debug windows covers your own windows, make it unsticky:
Code: Select all
! spider_StickyWindow(spider.debug.window, 0)
Markus
PS: Peeking into the libs/debug.js was a big help.