Page 1 of 1
Startdrawing(Gadgetoutput()) ?
Posted: Tue Nov 03, 2009 11:17 pm
by Hydrate
I've been looking around for this feature or something similar for a while, but to no avail. I know it must exist because we have "Windowoutput()",, I just cant find a way. Can anyone point me in the right direction?
Re: Startdrawing(Gadgetoutput()) ?
Posted: Tue Nov 03, 2009 11:42 pm
by Arctic Fox
Re: Startdrawing(Gadgetoutput()) ?
Posted: Tue Nov 03, 2009 11:46 pm
by netmaestro
It's easily managed with API, but there are considerations. With WindowOutput you have an event loop in which you can use the #PB_Event_Repaint message to update your drawing so it will be persistent and not disappear as soon as a window is opened or dragged in front of it. For a gadget this isn't available. You'd have to subclass the gadget and operate with the #WM_PAINT message, which does require some knowledge of what you're doing.