【问题标题】:How to restore frame to frameless Electron window如何将框架恢复为无框架电子窗口
【发布时间】:2017-10-12 18:15:11
【问题描述】:

使用 ElectronJS,如何将现有的无框窗口变为有框窗口?

类似这样的:

const splashWindow = createWindow('splash', {
  width: 500,
  height: 300,
  frame: false,
});

splashWindow.addFrame();
// Now splashWindow has a frame

【问题讨论】:

  • createWindow 不在文档中,也没有 addFrame 你在用什么?
  • createWindow() 是一个自定义函数(为了简洁起见,我把它放在那里)addFrame() 是向无框窗口添加框架的假设函数,即我正在寻找的内容

标签: electron


【解决方案1】:

创建BrowserWindow时只能设置frame

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多