Page 1 of 1

BindEvent for Browser Resize

Posted: Fri Jan 27, 2023 9:58 am
by itzybitzyspider
Is there a way to capture the browser resize? I want to automatically resize my window to follow the size of the browser.

Re: BindEvent for Browser Resize

Posted: Fri Jan 27, 2023 10:50 am
by Peter

Code: Select all

Procedure SizeDesktopHandler()
  Debug "Size event on desktop"
EndProcedure

BindEvent(#PB_Event_SizeDesktop, @SizeDesktopHandler())

Re: BindEvent for Browser Resize

Posted: Fri Jan 27, 2023 11:44 am
by useful
https://www.spiderbasic.com/documentati ... indow.html

#PB_Window_Background
: The window doesn't have a frame and is put in the web browser background. It can only have one window with the background flag opened at the same time. This window will be automatically resized when the web browser is resized.

Re: BindEvent for Browser Resize

Posted: Sat Jan 28, 2023 12:41 am
by itzybitzyspider
Thanks both for your answers. All works well.