-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webui_close is useless #359
Comments
I would assume you'd need to call |
void my_function(webui_event_t* e) {
webui_close(e->window);
}
int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance,
_In_ LPTSTR lpCmdLine, _In_ int nCmdShow)
{
auto winId = webui_new_window();
webui_show(winId,
"<html><script src=\"webui.js\"></script> Hello World from C++! <button id=\"MyID\">Hello</button> </html>");
webui_bind(winId, "MyID", my_function);
webui_wait();
return 0;
} In this way, the window still cannot be closed. |
Make sure you are not using the debug version of webui, because it does not close the window for dev-tool testing purpose. While the release version should close it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
webui_close
is uselessOS: Windows 10
WebUi version: main branch and 2.4.2
Chrome Version:124.0.6367.202 x64
Edge Version:124.0.2478.105 x64
The text was updated successfully, but these errors were encountered: