See: vendor/gabrielrcouto/php-gui/examples/03-window/example.php 【PHP with version 7.2.0 NTS】
$button->on('click', function () use ($button, $application) {
$window = ($application->getWindow());
//var_dump($application->getWindow());
if ($window->getHeight() == 600) {
$window->setHeight(300);
} else {
$window->setHeight(600);
}
$button->setCounter($button->getCounter() + 1);
$button->setValue('Your window was resized ' . $button->getCounter() . ' time(s), click to resize again!');
});
found the "onClick" event was emitted only once, and then i have a debug for "var_dump($application->getWindow())" , also output nothing on terminal. TKS.
See: vendor/gabrielrcouto/php-gui/examples/03-window/example.php 【PHP with version 7.2.0 NTS】
found the "onClick" event was emitted only once, and then i have a debug for "var_dump($application->getWindow())" , also output nothing on terminal. TKS.