Desktop events
Desktop events
I was hoping that there would be a way of capturing desktop events (so that, for example, anything that needs to be the width/height of the "desktop" can be resized without having to check it with a timer (i.e. a full width menubar on the desktop or a full height widget bar))
Re: Desktop events
You can use a window with the #PB_Window_Background flag and bind event on its resize, it should do the job.
Re: Desktop events
How do you know when it is resized? Is there an event?Fred wrote:You can use a window with the #PB_Window_Background flag and bind event on its resize, it should do the job.
Re: Desktop events
Code: Select all
Procedure SizeWindowEvent()
Debug "SizeWindowEvent"
EndProcedure
Procedure SizeDesktopEvent()
Debug "SizeDesktopEvent"
EndProcedure
OpenWindow(0, 0, 0, 0, 0, "", #PB_Window_Background)
BindEvent(#PB_Event_SizeWindow, @SizeWindowEvent(), 0)
BindEvent(#PB_Event_SizeDesktop, @SizeDesktopEvent(), 0)
Greetings ... Peter
Re: Desktop events
Thanks Peter, once again you come through