久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Electron:在所有其他窗口之上創建一個窗口(甚至全

Electron : Create a window above all the others (even fullscreen) and hide taskbar(Electron:在所有其他窗口之上創建一個窗口(甚至全屏)并隱藏任務欄)
本文介紹了Electron:在所有其他窗口之上創建一個窗口(甚至全屏)并隱藏任務欄的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

由于我的問題的標題可能很容易理解,我還是會解釋一下.

As the title of my question may be sufficiently understandable, I'll explain anyway.

我正在使用 Electron 進行個人項目,但我面臨一個令人沮喪的問題:

I'm working on a personal project with Electron, and I'm facing a frustrating issue which is :

我想創建一個小窗口(50x50 像素),它會在所有其他窗口上方,即使它們是全屏的.我的意思是,即使我在 Youtube 上使用 Chrome 并進入全屏模式,我的窗口也會停留在上面.

I'd like to create a small window (50x50 px) which would be above every other window, even when those are fullscreen. I mean, even if I'm on Youtube with Chrome and I enter fullscreen, my window would stay on top of it.

基本上,我已經成功地將我的窗口置于所有其他窗口之上,一個簡單的 setAlwaysOnTop(true) 就可以了.但是,Windows 中的任務欄一直顯示,但如果我隱藏我的窗口或只是關閉它,任務欄就會消失,一切都很好.

Basically, I've succeeded in making my window above all the others, a simple setAlwaysOnTop(true) did the trick. However, the taskbar in Windows keeps showing, but if I hide my window or just close it, the taskbar disappears and everything's fine.

所以我的問題是:我怎樣才能讓一個窗口高于所有其他窗口,包括全屏窗口,這不會使任務欄可見?(在我看來,任務欄扼殺了全屏終端用戶體驗).

So my question is : How can I achieve to have a window above all the others, including fullscreen ones, which wouldn't make the taskbar visible ? (in my sense, the taskbar kills the fullscreen end-user experience).

詳細信息:我的窗口啟用了透明度,不需要信息亭模式和全屏模式,因為我只使用 50x50 像素.

Details : my window has transparency enabled, and both kiosk mode and fullscreen mode are not needed since I only use 50x50 px.

感謝您的幫助.

推薦答案

好吧,我通過這樣做解決了這個問題:

Well, I fixed the issue by doing this :

window = new BrowserWindow({ ...  type:'toolbar' ... });`

當您在通話時,這使得窗口與 Skype 窗口完全一樣:它始終位于頂部,即使您在全屏瀏覽器中并且任務欄不會顯示,除非您明確關注您的窗口.

This makes the window act exactly as the Skype Window when you're on call : It's always on top, even when you're in fullscreen browser and the taskbar won't show unless you focus explicitly your window.

備注:您的窗口不會位于諸如視頻游戲(英雄聯盟、Dota 等)之類的程序之上,因為它們通常會操縱圖形渲染,因此您無法進入它們之上.

Remark : Your window won't be on top of programs such as video games (League of Legends, Dota, aso.) because they usually manipulate the graphical rendering so that you can't go on top of em.

希望這會有所幫助!

這篇關于Electron:在所有其他窗口之上創建一個窗口(甚至全屏)并隱藏任務欄的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to fix BrowserWindow is not a constructor error when creating child window in Electron renderer process(在 Electron 渲染器進程中創建子窗口時如何修復 BrowserWindow 不是構造函數錯誤) - IT屋-程序員軟件開發技術
mainWindow.loadURL(quot;https://localhost:3000/quot;) show white screen on Electron app(mainWindow.loadURL(https://localhost:3000/) 在 Electron 應用程序上顯示白屏)
Electron webContents executeJavaScript : Cannot execute script on second on loadURL(Electron webContents executeJavaScript:無法在第二個 loadURL 上執行腳本)
how to use electron browser window inside components in angular-cli?(如何在angular-cli的組件內使用電子瀏覽器窗口?)
ElectronJS - sharing redux store between windows?(ElectronJS - 在 Windows 之間共享 redux 存儲?)
How to access camera/webcamera inside electron app?(如何在電子應用程序中訪問相機/網絡攝像頭?)
主站蜘蛛池模板: 色婷婷精品国产一区二区三区 | 国产高清在线 | 激情五月综合 | 中文字幕不卡一区 | 久久一区二区三区电影 | 99精彩视频 | 综合网在线 | 五月天激情电影 | 欧美精品一二三 | 成人自拍视频网站 | 99精品欧美一区二区三区综合在线 | 成年无码av片在线 | 91在线电影 | 国产一区二区欧美 | 亚洲一视频 | 91精品国产乱码久久久久久久久 | 热re99久久精品国99热观看 | 在线视频一区二区 | 天天爽夜夜骑 | 五月婷婷色 | 中文字幕视频在线 | 精品九九九 | 亚洲精选一区 | 久久久123 | 精品三级在线观看 | 欧美天堂 | 国产成人aⅴ | 久久狠狠 | 日韩精品一区二区三区在线观看 | 亚洲狠狠爱一区二区三区 | 激情 婷婷 | 偷拍自拍在线观看 | 欧美日韩在线电影 | 国产激情在线看 | 色婷婷激情综合 | 亚洲综合在线一区 | 四虎在线观看 | 久久国内精品 | 91色啪| 中文字幕精品视频 | 欧美精品综合 |