bung87 / crowngui Goto Github PK
View Code? Open in Web Editor NEWWeb Technologies based Crossplatform GUI Framework, WebView in Nim
Home Page: https://bung87.github.io/crowngui/
License: MIT License
Web Technologies based Crossplatform GUI Framework, WebView in Nim
Home Page: https://bung87.github.io/crowngui/
License: MIT License
I want to use the code in webview2.nim without the crowngui app to learn something about the internals of webview, it seems it should be possible because there is this code at line 250:
when isMainModule:
SetCurrentProcessExplicitAppUserModelID("webview2 app")
var v = newWebView()
assert v.webview_init() == 0
v.run
but there is no newWebView() proc which can be called.
How can I write a newWebView() that starts the app?
I tried to add this at line 252: import ../../webview.nim
and I can compile, but it fails to run with this error:
ERROR:window_impl.cc(121)] Failed to unregister class Chrome_WidgetWin_0. Error = 0
my case is on win10
https://stackoverflow.com/questions/29911006/webview-text-is-blurry-then-flashes-then-clear
MicrosoftEdge/WebView2Feedback#571
anwser is setting DPI awareness
on win10 when bindProcs
only last js function generated and dispatched, on win11 it works fine, now bindPrco
family returns js string that generate js and dispatch at once, kinda of bug, now avoiding it and get a little improvements.
Installing crowngui@#head
Building crowngui/crowngui.exe using c backend
C:\Users\dev1lroot\AppData\Local\Temp\nimble_9460\githubcom_bung87crowngui_#head\src\crownguipkg\webview.nim(22, 11) Error: undeclared identifier: 'ID'
Tip: 49 messages have been suppressed, use --verbose to show them.
Error: Build failed for package: crowngui
... Execution failed with exit code 1
... Command: I:\WindowsLibrary\Terminal\nim-1.4.6\bin\nim.exe c --colors:on --noNimblePath -d:release -d:NimblePkgVersion=0.2.7 --path:C:\Users\dev1lroot.nimble\pkgs\regex-0.19.0 --path:C:\Users\dev1lroot.nimble\pkgs\unicodedb-0.9.0 --path:C:\Users\dev1lroot.nimble\pkgs\xlsx-0.4.5 --path:C:\Users\dev1lroot.nimble\pkgs\zip-0.3.1 --path:C:\Users\dev1lroot.nimble\pkgs\static_server-2.2.0 --path:C:\Users\dev1lroot.nimble\pkgs\finder-0.2.0 --path:C:\Users\dev1lroot.nimble\pkgs\zippy-0.5.6 --path:C:\Users\dev1lroot.nimble\pkgs\jsonschema-0.2.1 --path:C:\Users\dev1lroot.nimble\pkgs\ast_pattern_matching-1.0.0 --path:C:\Users\dev1lroot.nimble\pkgs\objc_runtime-0.1.0 --path:C:\Users\dev1lroot.nimble\pkgs\darwin-#master --path:C:\Users\dev1lroot.nimble\pkgs\darwin-#master --hints:off -o:C:\Users\dev1lroot\AppData\Local\Temp\nimble_9460\githubcom_bung87crowngui_#head\crowngui.exe C:\Users\dev1lroot\AppData\Local\Temp\nimble_9460\githubcom_bung87crowngui_#head\src\crowngui.nim
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.