BindEvent for Browser Resize

Just starting out? Need help? Post your questions and find answers here.
itzybitzyspider
Posts: 27
Joined: Tue Nov 22, 2022 4:36 am

BindEvent for Browser Resize

Post 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.
User avatar
Peter
Posts: 1086
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: BindEvent for Browser Resize

Post by Peter »

Code: Select all

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

BindEvent(#PB_Event_SizeDesktop, @SizeDesktopHandler())
User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

Re: BindEvent for Browser Resize

Post 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.
2B or not 2B = FF
itzybitzyspider
Posts: 27
Joined: Tue Nov 22, 2022 4:36 am

Re: BindEvent for Browser Resize

Post by itzybitzyspider »

Thanks both for your answers. All works well.
Post Reply