dalefugier / samplecschromium Goto Github PK
View Code? Open in Web Editor NEWSample C# RhinoCommon plug-in that demonstrates how to Chrome into a docking panel.
Sample C# RhinoCommon plug-in that demonstrates how to Chrome into a docking panel.
This is never hit: https://github.com/dalefugier/SampleCsChromium/blob/master/SampleCsChromiumPanelControl.cs#L57
To fix it, run Cef.Shutdown() when Rhino shuts down:
RhinoApp.Closing += OnClosing;
...
private void OnClosing(object sender, EventArgs e)
{
browser.Dispose();
Cef.Shutdown();
SampleCsChromiumPlugIn.Instance.UserControl = null;
}
If this project is run as Debug, using Rhino.exe as the application, the Chromium panel works fine and the webpage shows up. If one runs Rhino normally, the webpage never appears.
There is an issue related to HighDPI settings in the Rhino 5 app.manifest when updating CEF to recent versions. Updating to recent CEF versions (>47.0.4) causes the UserControl to render 1/4 of the size on screen. If dpiaware is set to true in the manifest, it renders correctly, but all of the rest of Rhino does not. If this same code is run in Rhino 6, everything works fine with newer versions of CEF.
I'm adding this as a note. To use on Rhino 5 sr12, use CEF 47.0.x. For Rhino 6, more recent versions of CEF can be used.
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.