/** * Receive a WX event from the choice control * * @param wxCommandEvent $event */ public function controlChangeEvent(wxCommandEvent $event) { $this->activateChoice($event->GetInt()); }
/** * Receive a WX event from the choice control * * @param wxCommandEvent $event */ public function controlChangeEvent(wxCommandEvent $event) { if ($event->GetId() === self::ID_DEMO) { $this->changeDemoEvent($event->GetInt()); } elseif ($event->GetId() === self::ID_HORIZ || $event->GetId() === self::ID_VERT) { $this->changeAlignmentEvent($event->GetInt()); } }