I needed to check a 'content change' on an EditorGadget, and I discovered that #PB_EventType_Change does not work. So, I grabbed the events that the Editor returns, and it seems that EventType() receives a '1024' everytime I write in the EditorGadget.
I then dumped the constants for EventType():
Code: Select all
#PB_EventType_Change = 768
#PB_EventType_CloseItem = 65535
#PB_EventType_Focus = 14000
#PB_EventType_LeftClick = 0
#PB_EventType_LeftDoubleClick = 2
#PB_EventType_LostFocus = 14001
#PB_EventType_ReturnKey = 1281
#PB_EventType_RightClick = 1
#PB_EventType_RightDoubleClick= 3
#PB_EventType_SizeItem = 65534
Question: I'm sometimes a little confused about the less documented sides of PB.
Can anybody give a little more explanation about what exactly is EventType(), in a practical way? Ie: so that it is possible to find some more documentation on its possibilities?
A possibly similar question:
Sometimes you can use WindowEvent() plus EventwParam() and EventlParam() to catch messages such as, for example, #wm_mousewheel, and sometimes you seem to be forced to a callback. Can anybody clarify a little when it is possible to act the first way, and when are you forced to the second?

