Node-Webkit frameless app covers taskbar when maximized - node-webkit

I am developing an app in Node-Webkit (using the latest version, 0.9.2). When the main window (which is a frameless window) gets maximized, it covers the whole screen, including the taskbar, which is obviously not what I want.
I am using Windows 8.1. On OS X the maximize functionality works as expected. I am not able to verify this on Windows 7 and Linux at the moment.

How do you maximize the app, are you using require('nw.gui').Window.get().maximize()? I'm not experiencing the same issue on Windows 7.
If there is indeed an issue on Windows 8.1, you can just implement the resize method yourself in JS. Not too fancy, but it will work as a workaround until the next version of NW is released...
var nw = require('nw.gui').Window.get();
nw.resizeTo(screen.availWidth, screen.availHeight);
nw.moveTo(0, 0);
or
var nw = require('nw.gui').Window.get();
nw.setMaximumSize(screen.availWidth, screen.availHeight);
Hope this helps...
EDIT: Looks like a known issue on NW. The solutions suggested in the thread are similar to the solutions suggested above.

Related

How Can I set the background of a browser window blend with the desktop background?

I'm trying to build an app with nwjs, and I want it to have the look and feel of a desktop app. Desktop apps on OSX (Specifically the ones on the upper menu) have their background blend with the desktop background.
Does anyone know how can I do this in a browser, or simply in nwjs (Node-Webkit)?
Thanks,
Adir
Are you thinking of window transparency? If so this is possible in newish versions of NWJS. (node-webkit >= v0.11.2)
https://github.com/nwjs/nw.js/wiki/Transparency
It seems I was going the wrong way. The blend mode is available for menus only.

The form fails to popup in windows 8

I have a chat application written in VB.net which is used to chat between users who are connected in LAN inside a office . The application popups whenever user gets new chat message. It works fine in windows XP. But sometimes in windows 8 the application fails to popup the chat window. So my chat window is not appearing at the top when popup occurs for new messages.
I have tried using setwindowspos, form.Show(), form.BringToFront() which can bring the form to topmost. But sometimes this will not work properly.
So is there any other method other than those three(which i have mentioned above) i have used which can make the form popup and bring it to front.
Your WinForms app is a desktop application, so it's likely that the reason the pop-up is not being displayed in Windows 8 is because the desktop is not visible.
Remember that Windows 8 brings with it a whole new Start Screen interface and relegates the desktop to an alternate mode. All desktop applications still run, but they run in this separate mode and cannot interact with the new Metro applications (or whatever they're calling them nowadays). Yes, it's too bad that the usability folks at Microsoft didn't listen to Larry Tesler and have decided instead to mode us in, but c'est la vie.
So anyway, the pop-up is still being displayed, but it's being displayed on the desktop, which is not visible. Bringing it to the top isn't doing any good because it's already at the top of all the other windows on the desktop. If you click on the "Desktop" tile in the Start Screen, you should see your window.
Fixing this problem is going to take some work. Forcing a focus switch to the desktop mode is a horrible idea from a usability perspective, and I'm not sure it's even possible. A better solution would be to look into using Toast notifications instead, which can be done from a desktop application.

Windows 8 incompaitbility with sysinternals Desktops utility

After Googling for about the past hour and a half, I have been unable to find out any definitive information on how the start menu and how windows 8 style applications work behind the scenes. I was under the impression that Windows 8 Style applications were processes which created fullscreen windows and that the Windows 8 start menu was created by explorer.exe in much the same way. But there are incompatibilities between Windows 8 the 1.x version Sysinternal's Desktops utility, I have to imagine that something more complex is going on.
However, in Spy++, each Windows 8 style application appears as standard Window with the WS_EX_TOPMOST style set, which would make sense, assuming they are nothing special. With respect to the Start Menu, it appears as a window of class ImmersiveLauncher created by explorer.exe. Perhaps explorer has developed an aversion to having multiple instances...
Using the old version of SysInternal's Desktops, the explorer instances in the additional desktops work fine, but do not load pinned items nor load the desktop background and icons.
Is there any documentation on why Windows 8 behaves differently from past versions when multiple copies of explorer.exe are running in different desktops?
(This is purely for curiosity's sake)
(Yes, I know there is a Desktops 2.0 version available which supports Windows 8, but it uses interesting workarounds, like switching to the original desktop when the windows key is pressed. It also seems to trigger some initialization within explorer.exe when the desktop is loaded for the first time beyond simply starting the process.)

Windows Installer dialog minimize button

I am developing a windows installer using WiX 3.0.
The installer dialog, while installing, if minimized and then again maximized, gets stuck in the top left corner of the screen with very little user interface visible from and no buttons/controls are visible.
Is there any way to disable the minimize button from the installer dialog or is there any way that the click event on the minimize button can be captured and handled?
This is a Windows 7 bug, was reported a couple of years ago on the WiX mailing list and comes up repeatedly as new developers find the same bug :)
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Re-WiX-users-Install-on-Windows-7-minimize-the-installation-wizard-then-only-see-a-slice-of-the-instd-td4430104.html
As far as I know, that is not possible. It could be possible that this problem has been fixed with a newer version of WiX. WiX 3.6 RC is available now and might be worth looking into.

Does anyone know a Safari style Tab Control for Mac OS X applications?

I am looking for a tab control that is different from the default NSTabControl. I am looking for a sample or existing control that replicates the newer style tab controls that are used within Safari, Firefox, Camino etc.
From looking into the Safari app bundle resources it seems the tabs are created from images. I would prefer a control that already exists and has been tested rather than re-inventing the wheel though.
Thank you!
Update: I found PSMTabBarControl however this doesn't work on Leopard and is very old, from 2006. Anything that is more recent available?
This publicly-available framework comes to my mind: PSMTabBarControl.
It doesn't seem to be maintained recently, but might serve as a point to start from.