intro.bbdoc 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Event objects are used to notify your application about external events such as user input,
  2. user interface activity and so on.
  3. The are two main ways your program can receive events: either by adding a hook function to
  4. the #EmitEventHook hook, or by using using the global #{event queue}
  5. The most important field in an event object is the @id field, which identifies the kind of
  6. event:
  7. [ @{Event id} | @Description
  8. * EVENT_APPSUSPEND | Application suspended
  9. * EVENT_APPRESUME | Application resumed
  10. * EVENT_APPTERMINATE | Application wants to terminate
  11. * EVENT_KEYDOWN | Key pressed. Event data contains keycode
  12. * EVENT_KEYUP | Key released. Event data contains keycode
  13. * EVENT_KEYCHAR | Key character. Event data contains unicode value
  14. * EVENT_MOUSEDOWN | Mouse button pressed. Event data contains mouse button code
  15. * EVENT_MOUSEUP | Mouse button released. Event data contains mouse button code
  16. * EVENT_MOUSEMOVE | Mouse moved. Event x and y contain mouse coordinates
  17. * EVENT_MOUSEWHEEL | Mouse wheel spun. Event data contains delta clicks
  18. * EVENT_MOUSEENTER | Mouse entered gadget area
  19. * EVENT_MOUSELEAVE | Mouse left gadget area
  20. * EVENT_TIMERTICK | Timer ticked. Event source contains timer object
  21. * EVENT_HOTKEYHIT | Hot key hit. Event data and mods contains hotkey keycode and modifier
  22. * EVENT_MENUACTION | Menu has been selected
  23. * EVENT_WINDOWMOVE | Window has been moved
  24. * EVENT_WINDOWSIZE | Window has been resized
  25. * EVENT_WINDOWCLOSE | Window close icon clicked
  26. * EVENT_WINDOWACTIVATE | Window activated
  27. * EVENT_WINDOWACCEPT | Drag and Drop operation was attempted
  28. * EVENT_GADGETACTION | Gadget state has been updated
  29. * EVENT_GADGETPAINT | A Canvas Gadget needs to be redrawn
  30. * EVENT_GADGETSELECT | A TreeView Node has been selected
  31. * EVENT_GADGETMENU | User has right clicked a TreeView Node or TextArea gadget
  32. * EVENT_GADGETOPEN | A TreeView Node has been expanded
  33. * EVENT_GADGETCLOSE | A TreeView Node has been collapsed
  34. * EVENT_GADGETDONE | An HTMLView has completed loading a page
  35. ]