Comments (3)
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.
from webui.
I would assume you'd need to call webui_wait
before webui_close
from webui.
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.
Chrome Version:124.0.6367.202 x64
Edge Version:124.0.2478.105 x64
from webui.
Related Issues (20)
- How to create an Android app? HOT 1
- OpenSSL doesn't work in Firefox and Safari HOT 7
- Build failed using WEBUI_USE_TLS option using windows mingw HOT 7
- Deno's example should update HOT 1
- Edge Browser window won't show up when running as SYSTEM account in Windows HOT 3
- When h5 website is run, a white screen appears randomly and the program exits automatically HOT 13
- Can the webui_set_file_handler serve the image files or other type? HOT 3
- Question: Usecase of WebUI HOT 2
- How to unbind an event? HOT 6
- Floats HOT 5
- Cannot use WebUI versions > 2.4.1 for V wrapper HOT 8
- add cmake cross build
- Can't run example HOT 3
- Errors compiling minimal example: "undefined reference to pthread_create" and "undefined reference to `dlopen'" (and my fixes) HOT 5
- `set_title` function HOT 2
- `webui_set_root_folder` is broken HOT 3
- Regession with the latest changes HOT 6
- set_profile & CORS HOT 9
- SvelteKit + webui problem HOT 23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webui.