What is EventID 14002?

Everything else that doesn't fall into one of the other PB categories.
eriansa
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Mar 17, 2004 12:31 am
Contact:

What is EventID 14002?

Post by eriansa »

Anyone?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
eriansa
Enthusiast
Enthusiast
Posts: 277
Joined: Wed Mar 17, 2004 12:31 am
Contact:

Post by eriansa »

Yes, but the strange thing is that I get this event from EventType()
(On an ImageGadget()) - see http://www.purebasic.fr/english/viewtopic.php?t=20865
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8452
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

I don't believe it means anything useful. The reason being, that it appears to be caused by the unintended mixing of a couple of eventtypes. #PB_EventType_LostFocus is 14001, and it shouldn't be firing at all on an image gadget. If you take out the SetCapture_(), it won't. However, the introduction of the SetCapture_() to the mix seems to be causing it to fire and get or'd with something else upon leaving the image, resulting in this odd and probably meaningless, message.

IMHO, when using API commands, the safest way to handle events is in a callback. Then you can get full control over the messaging and this kind of thing is less likely to leap out and confound you. And when checking eventtypes, if they aren't exactly equal to #PB_EventType_SomethingOrOther, they are probably not usable and can safely be ignored.

Bear in mind that:

a: It's just an opinion
b: I'm rather low-functioning.*

*see "dull", "obtuse".
BERESHEIT
Post Reply