Wondering how to remove the WebView2 title bar from my export

0 favourites
  • 5 posts
From the Asset Store
Customize the animation of character when item changed
  • I'm working on an app that allows users to create, modify, and export little projects. I need to remove the WebView2 titlebar, so I can use my own inside the app window instead. Is there a commandline arguement I can use during export, or a setting I can modify to achieve this? I can do this easily with NW.js but am stuck with WV2

    (I also need a way to export binary files, given that NW.js is being removed eventually... any ideas?)

    Thanks in advance!!

    Tagged:

  • Like a dork, I'd completely forgotten about the FileSystem plugin, which 100% solves my binary writing needs... Still no luck figuring out how to remove the title bar for WebView2 exports though... anyone? Pretty please?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • No one has any ideas on this I gather? This does tend to force me to continue to use NW.js... I sure hope this can be resolved before NW.js gets removed entirely...

  • Probably you’d just need to make a feature request to do that if the export doesn’t have an option to remove the title bar.

    Webview2 doesn’t come with much of a js api like nw.js did. It also has no command line switches. One rabbit hole you could explore are “wrapper extensions” as mentioned in the sdk manual. That would let you make a plugin in c++ land which has far less limits on what is possible. Presumably you could make a plugin that uses the winapi to get the current process, then the window, and from that change a flag to hide the title bar. Could be a pretty big time sink to figure out and do though. I won’t venture it since I just use the free version and never use exports.

    Making an official feature request is probably the easiest approach.

  • Thanks for the feedback, feature-request it is!!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)