Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.52 KB

README.md

File metadata and controls

57 lines (43 loc) · 1.52 KB

Event Examples

This folder contains event examples.

  • ApplicationIdle shows how to create an application and catch idle event.
  • CustomEvent shows how to create a CustomEvent event with wxCommandEvent.
  • EvtHandlerFilterEvent shows how to use EvtHandler::FilterEvent method.
  • FrameAndEvents shows how to create a Frame and catch some events.
  • FrameClick shows how to create a Frame and catch click event.
  • FramePaint shows how to create a Frame and catch paint event.
  • KeyEvents shows how to create a Frame and catch key events.
  • MouseEvents shows how to create a Frame and catch mouse events.
  • ProcessEvent shows how to override ProcessEvent method.

Build and run

To build this project, open "Terminal" and type following lines:

Windows

mkdir build && cd build
cmake ..
start Events.sln

Select any project and type Ctrl+F5 to build and run it.

macOS :

mkdir build && cd build
cmake .. -G "Xcode"
open ./Events.xcodeproj

Select any project and type Cmd+R to build and run it.

Linux with Code::Blocks :

mkdir build
cd build
cmake .. -G "CodeBlocks - Unix Makefiles"
xdg-open ./Events.cbp > /dev/null 2>&1

Select any project and type F10 to build and run it.

Linux :

mkdir build
cd build
cmake ..
cmake --build . --config Debug
./AnyProject