I have known that I can develop a docker in Html based and WPF based, but I really dont know what the docker it is?
Because I have learned frontend techonoly recently, and found it is very conviently in develop user interfaces.
However I can apply them in coreldraw docker, the recent avaliable 2 approach have its own shortcomes
1. html, js based: the supported techonology is so old that I found it base on ie 7, all advanced web techs are not supported.
2. wpd based: C# is not my familiy language, It is difficult for me to develop with it.
Is there any other way to use current advanced web-based technology in CorelDraw docker developing?
I have been cray busy and this is not as complete as I wanted but hopfully it will give you a little more insight.
The web based docker is a .NET WebControl (WebControl Class (System.Web.UI.WebControls) | Microsoft Learn) You are correct that it is based on IE and by default it renders in IE7 and quirks mode. The good news is that you can change the rendering mode to at least get you a little better rendering. It is still IE so you are not going to get everything.
<!DOCTYPE html> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> ... other headers </head> <body> ... content </body> </html>
With the change I was able to go from not being able to run HTML5test - How well does your browser support HTML5? to scoring a 315.
I tried to upload some screenshots, but images do not seem to be working tonight here. Oh well. ARUGH.
In newer version of CorelDRAW you will see that rendering is still not correct and get white boxes or backgrounds around items. This can be fixed by adding appStyles="false" to the web control in the AppUI.xslt
<!-- Define the web control which will be placed on our docker --> <itemData guid="5e354764-caf2-6949-aceb-4af34689d2f6" type="browser" href="[VGAppAddonsDir]/Selection(HTMLDocker)/Selection(HTMLDocker).html" enable="true" appStyles="false" />
One correction to CorelCS's post. You do not need to use VBA, I would recommend it, but you can do most things in javascript. Here is an example I put together for you this evening. Selection (HTML Docker)For more informaton on the WebControl and how to specify the IE Version take a look at this post: Web Browser Control & Specifying the IE Version
Happy coding and I hope that helps,
-Shelby
Hi, Shelby, base on your knowledge, I have now found one control that can be placed in docker, and is very compitable with advanced frontage technical, it is called webview: Introduction to Microsoft Edge WebView2 - Microsoft Edge Development | Microsoft Learn, it is easy for me to apply html style UI in docker.
hahah , How to work,I'm a JavaScript developer too...
After changing to the browserEdge option, I tested that window. external Application cannot obtain the top-level object host of CorelDRAW, which means window. external Application===undefined