WinBlitz3D : Get Active Gadget?!

Blitz3D Forums/Blitz3D Userlibs/WinBlitz3D : Get Active Gadget?!

Danny(Posted 2006) [#1]
Hi Kev,

Please check out the example below (run in debug mode to see the feedback). When a gadget triggers an event I expect that that gadget 'has focus' at that time. But when I use _GetActiveGadget() to verify that fact, it tells me otherwise. Do I misunderstand the function, is this normal win api behaviour, or is this a wb3d issue?!??

In stead of the 'active' gadget's handle I get the handle of gadget's parent (ie. the window)...

thanks,



cheers,

Danny


Kev(Posted 2006) [#2]
Hi danny,

use the winapi GetFocus() found within user32.dll, does seem theres a problem with winblitz3d's internal WB3D_GetActiveGadget command.

using the example above but1 still fires the active event as its been clicked. and debuglog actives the debugger. i will fix this a.s.p

kev


Danny(Posted 2006) [#3]
No problem.

cheers dude,

D