What is EventID 14002?
What is EventID 14002?
Anyone?
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.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

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
(On an ImageGadget()) - see http://www.purebasic.fr/english/viewtopic.php?t=20865
- netmaestro
- PureBasic Bullfrog

- Posts: 8452
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
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".
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

