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

Electron:在所有其他窗口之上創(chuàng)建一個(gè)窗口(甚至全

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

問(wèn)題描述

由于我的問(wèn)題的標(biāo)題可能很容易理解,我還是會(huì)解釋一下.

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

我正在使用 Electron 進(jìn)行個(gè)人項(xiàng)目,但我面臨一個(gè)令人沮喪的問(wèn)題:

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

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

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.

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

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.

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

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).

詳細(xì)信息:我的窗口啟用了透明度,不需要信息亭模式和全屏模式,因?yàn)槲抑皇褂?50x50 像素.

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

感謝您的幫助.

推薦答案

好吧,我通過(guò)這樣做解決了這個(gè)問(wèn)題:

Well, I fixed the issue by doing this :

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

當(dāng)您在通話時(shí),這使得窗口與 Skype 窗口完全一樣:它始終位于頂部,即使您在全屏瀏覽器中并且任務(wù)欄不會(huì)顯示,除非您明確關(guān)注您的窗口.

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.

備注:您的窗口不會(huì)位于諸如視頻游戲(英雄聯(lián)盟、Dota 等)之類(lèi)的程序之上,因?yàn)樗鼈兺ǔ?huì)操縱圖形渲染,因此您無(wú)法進(jìn)入它們之上.

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.

希望這會(huì)有所幫助!

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

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

相關(guān)文檔推薦

How to fix BrowserWindow is not a constructor error when creating child window in Electron renderer process(在 Electron 渲染器進(jìn)程中創(chuàng)建子窗口時(shí)如何修復(fù) BrowserWindow 不是構(gòu)造函數(shù)錯(cuò)誤) - IT屋-程序員軟件開(kāi)發(fā)技術(shù)
mainWindow.loadURL(quot;https://localhost:3000/quot;) show white screen on Electron app(mainWindow.loadURL(https://localhost:3000/) 在 Electron 應(yīng)用程序上顯示白屏)
Electron webContents executeJavaScript : Cannot execute script on second on loadURL(Electron webContents executeJavaScript:無(wú)法在第二個(gè) loadURL 上執(zhí)行腳本)
how to use electron browser window inside components in angular-cli?(如何在angular-cli的組件內(nèi)使用電子瀏覽器窗口?)
ElectronJS - sharing redux store between windows?(ElectronJS - 在 Windows 之間共享 redux 存儲(chǔ)?)
How to access camera/webcamera inside electron app?(如何在電子應(yīng)用程序中訪問(wèn)相機(jī)/網(wǎng)絡(luò)攝像頭?)
主站蜘蛛池模板: 国产激情三区 | 波多野结衣精品 | 欧美中文字幕 | 九九伊人sl水蜜桃色推荐 | 久久久这里都是精品 | xxx视频| 精品国产一区二区三区日日嗨 | 国产亚洲一区二区三区 | 超碰人人91 | 久久亚洲一区 | 亚洲v日韩v综合v精品v | 91精品久久久久久久久久小网站 | 国产成人短视频在线观看 | 亚洲人成人一区二区在线观看 | 亚洲午夜一区二区 | av在线免费不卡 | 国产精品免费观看 | 日韩免费高清视频 | 99精品久久| 亚洲精品无 | 91免费视频观看 | 久久国内精品 | 免费簧片视频 | 日韩欧美精品 | 中文字幕日韩欧美一区二区三区 | 精品久久久久一区二区国产 | 成人欧美一区二区三区 | 午夜视频一区二区 | 日本在线一二 | 国产精品无码久久久久 | 久久精品国产v日韩v亚洲 | 国产精品美女www爽爽爽视频 | 久久久久久久国产精品视频 | 久久久国产精品网站 | 伊人春色成人网 | 自拍偷拍中文字幕 | 国产精品免费一区二区三区 | 久色| 新疆少妇videos高潮 | 色网站在线免费观看 | 久一精品 |