I have asked this question on a number of different forums and have not been able to find a solution. Can ANYONE tell me if this can be done?
When launched my Browserwindow is currently placed at the top of my screen which is what I want. However I also want the browser window to SIT ABOVE other applications. google chrome and other browsers such as Microsoft edge should sit below the electron app. (similar to how the windows taskbar works.)
I've looked at discussions online and apparently this is doable on macOs, however no ones really said for definite if this can be done on windows 10 or not.
Heres my code:
Does anyone have a solution for this?
Thankyou
When launched my Browserwindow is currently placed at the top of my screen which is what I want. However I also want the browser window to SIT ABOVE other applications. google chrome and other browsers such as Microsoft edge should sit below the electron app. (similar to how the windows taskbar works.)
I've looked at discussions online and apparently this is doable on macOs, however no ones really said for definite if this can be done on windows 10 or not.
Heres my code:
JavaScript:
const createWindow = () => {
// Create the browser window.
const mainWindow = new BrowserWindow({
width: 1920,
height: 200,
alwaysOnTop:true,
titleBarStyle: 'none',
frame: false,
resizable: false,
minimizable: false,
type: 'toolbar',
webPreferences: {
nodeIntegration: true,
contextIsolation: false}
});
mainWindow.setAlwaysOnTop(true, "screen-saver");
mainWindow.setVisibleOnAllWorkspaces(true);
mainWindow.setMenuBarVisibility(false);
mainWindow.moveTop();
mainWindow.setPosition(0,0)
// and load the index.html of the app.
mainWindow.loadFile(path.join(__dirname, 'index.html'));
Does anyone have a solution for this?
Thankyou