Crafter.CppDOM/examples/AllEventHandling
2025-11-10 21:31:06 +01:00
..
main.cpp added event example 2025-11-10 21:31:06 +01:00
project.json added event example 2025-11-10 21:31:06 +01:00
README.md added event example 2025-11-10 21:31:06 +01:00
run.sh added event example 2025-11-10 21:31:06 +01:00

All Event Handling Example

This example demonstrates all available event types in Crafter.CppDOM:

Events Demonstrated

Mouse Events

  • Click
  • Mouse Over
  • Mouse Out
  • Mouse Move
  • Mouse Down
  • Mouse Up

Keyboard Events

  • Key Down
  • Key Up
  • Key Press

Focus Events

  • Focus
  • Blur

Form Events

  • Input
  • Change

Window Events

  • Resize
  • Scroll
  • Context Menu

Drag and Drop Events

  • Drag Start
  • Drag End
  • Drag Over
  • Drag Enter
  • Drag Leave
  • Drop

Wheel Events

  • Wheel (Mouse wheel scrolling)

How to Run

  1. Build the project using the build system
  2. Run the executable with ./run.sh
  3. Open your browser to http://localhost:8080

The demo will show various event handlers in action through interactive elements.