Why does my NWJS app open two icons in taskbar instead of showing shortcut icon open? - icons

Why does my NWJS app open two icons in taskbar instead of showing shortcut icon open? When i click on the shortcut icon it opens a whole new icon for app instead of showing the first one as open. It didn't do this at first. It just started suddenly doing it.

Related

QtWebAssembly - Push button does not work

I am new to QtWebAssembly. I am trying to build a simple app "Hello World" as a starting point to understand. The app contains a push button and when it is clicked a qlabel with text is set to visible using slot.
When i build and run the app, my firefox browser runs and opens a page as shown below:
ex-app
But, i am not able to access the button or the button is not working.
I am working on OS - Ubuntu 20.x
I need an helping hand on what i am missing so that when I press the button the qlabel should be visible.
Thank you.
Bhimesh G K

Can't close a QMenu opened through dbus by double clicking in another app

I have 2 applications, 1 has a QMenu that can be opened through DBus ("menu" app) and the other can open that menu by double clicking ("clicking" app).
When I open the menu by double clicking in the "clicking" app the menu doesn't close when I click outside of the menu.
The menu closes when:
opened through qdbus in the terminal
opened through single click in "clicking" app
pressing Esc key
If the menu belongs to the same app then it closes.
Here are the 2 applications
https://gitlab.com/fbg/qmenu-dbus-test
Expected Result:
open both apps
double click "clicking" app
menu from "menu" app opens
click outside menu
menu closes
Actual Result:
1-4 same as above
menu doesn't close, unless I click in "menu" app's window or press the Esc key
Edit:
Behaviour happens in Solus 4.0
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
In lubuntu (lxqt) the menu shows for a split second and then closes.
A simpler way to test this is to use qdbusviewer.
build and run testqmenudbus2
open qdbusviewer
find the service org.TestQMenu
find the method showMenu in TestQMenu.local.MainWindow
double click method
Solved it by adding
QThread::msleep(150);
to the dbus method before showing the menu.
Might be just a workaround though.

How do I set the AutoHotkey MsgBox taskbar icon?

I have some hotkeys in a script with a custom tray icon.
Menu Tray, Icon, my_hotkeys.ico
One of them shows a message box with an OK button and question mark icon.
MsgBox, 32, My Hotkeys, Hey, here's some info...
But, it has the default green H AutoHotkey image in the Windows taskbar. I've looked through all the Menu options. And the GUI command claims that it uses the Menu icon, if set. But I can't find anything specific to MsgBox. Is there any way to change the MsgBox icon to the same custom icon that I'm using in the system tray?
There are several possible solutions:
Create and show a Gui with +OwnDialogs before calling MsgBox.
Code your own MsgBox look-alike using the Gui commands.
Compile your script (convert to exe) with a custom icon.
Replace the icon resources in AutoHotkey.exe (affecting all scripts).
Set a timer before showing the MsgBox, then send WM_SETICON after it appears.
Hook creation of the MsgBox window to set the icon before the window is shown - example in C++.
+OwnDialogs example:
Menu Tray, Icon, shell32.dll, 5 ; Folder icon
Gui +OwnDialogs
Gui Show ; Since it has zero dimensions, it should be invisible.
MsgBox Testing...
ExitApp

Close Other tabs in XCode 4?

Am I crazy or is it not possible to close other tabs in XCode 4? I have about 7 tabs opened littering my workspace. I right click the one tab I'm interested in to bring up the context menu. I can see options to open a "new tab", "close tab", "close other tabs", and "move tab to new window". However, the only option that is not greyed out is "new tab". Do I have to put XCode in some magical state to enable the other options? Are these options merely eye candy, teasing me with hopes and aspirations of things I might like to do? Is this some weird kind of year long April fools gag? Inquiring minds wanna know.
*Update Uploading a HocusFocus screen capture for clarity...
You should be able to hover over the tab and click on the cross that appears on the left hand side of the tab. However, if you are not seeing this cross for some strange reason - you should be able to close the current tab in XCode (similar to many other OSX applications) by pressing CMD+W on your keyboard.
While the context menu doesn't work when you right click on a tab, you can achieve all of the same results by using keyboard shortcuts (which do seem to work as expected). Each of the 4 options on the context menu maps to the following shortcuts;
New Tab: CMD + T
Close Tab: CMD + W
Close Other Tabs: CMD + ALT + W
Move Tab to Other Window: I couldn't find a keyboard shortcut, but you can click and drag the tab away from the menu bar.
There doesn't appear to be a sensible way to enable the context menu on the tabs at the current time.
Late to the party but are/were you in full screen? Try again after quitting full screen...
Just click: View -> Hide tab bar
I had a similar issue (I say 'similar, because using Cmd+W. Cmd+Alt+W' didn't work for me).
In my case the tab had a cross on the top right, grayed out and nothing happens when clicking on it. If I opened a new tab, I could close either of the extra tabbed editors, but not both(!)
In View > Editor, selecting 'Standard' removes the 'second tabbed editor'.

AIR: make taskbar item flash?

Is there a way to make the taskbar item flash in an AIR app? like it does in other applications to alert the user of a change.
Thanks!!
You need to call:
stage.nativeWindow.notifyUser(NotificationType.CRITICAL);
Just to put some more info, the notification types that can be used here are:
NotificationType.CRITICAL: the window icon flashes until the
user brings the window to the foreground.
NotificationType.INFORMATIONAL: the window icon highlights by changing color.
There's an article on livedocs about using Taskbar here

Resources