Drawing on the desktop/Getting gadget mouse is ovr

BlitzMax Forums/BlitzMax Programming/Drawing on the desktop/Getting gadget mouse is ovr

AntonyWells(Posted 2005) [#1]
Is it possible to draw on the desktop, and can you check which gadget the mouse is over? Shouldn't it generate an event when a mouse is over a button?


Kanati(Posted 2005) [#2]
programs that let you fux with the desktop like that usually take a snapshot of the desktop and you just THINK you are messing with the desktop directly


BlitzSupport(Posted 2005) [#3]
Antony, check Help -> Modules -> Event Objects for EVENT_MOUSEENTER and EVENT_MOUSELEAVE.


Hotcakes(Posted 2005) [#4]
Programs like screenmates typically use a buffer blitting system, in that they grab the area of desktop they're about to draw to, do their drawing, then next frame, draw back the old area, repeat adnauseum...

The second part is answered by James, unless you're talking about gadgets on other windows, which won't work because the desktop doesn't own them (desktop never has gadgets. At least on Win)... you would need the hwnd to those windows, amongst other things probably.


skn3(Posted 2005) [#5]
Infact you could just invalidate the area of screen your desktop buddy was on, then send a WM_PAINT message to the desktop. .. In theory.. never tried it.