How to customize minimized icon? - objective-c

Using setApplicationIconImage I was able to change the icon in the dock and command+tab menu. However it's not taking affect on the minimized window icons. Please see image below. The red arrow points to the minimized icon, it's not matching the first icon we see in the command+tab or the dock pointed to with blue arrow.
How can I make this minimized window icon match my setApplicationIconImage icon?

Related

How to hide grey background color on click (react-native-popup-menu)

I'm using React native popup menu and on click I have a grey background color that appears on the menu.
So i read the docs and it says to change customStyles in Menu Trigger but I tried many different things and it doesn't work.
I just want that when I press the menu I have no background color.

Intellij documentation popup hides warning popup

In the Intellij Settings I activated Editor > General > Show quick documentation on mouse move and I like it. But when there is a warning message also shown as popup when the mouse hovers over, then the documentation popup just hides the warning like this:
Well, that's not nice. Is there a way to solve that?
The are a couple of alternatives to displaying the quick documentation as a popup:
Display the quick documentation in a separate panel.
Display the quick documentation in a floating window.
To display the quick documentation in a separate panel:
Position the mouse so that the quick documentation popup is displayed.
Click the Options icon in the bottom right of the popup.
Select Open as a Tool Window from the drop down menu.
After doing that the quick documentation popup is displayed in a panel on the right. It is still automatically updated as you move the mouse.
Alternatively, to display the quick documentation as a floating window:
Click the Options icon in the top right corner of the panel.
Select Windowed Mode from the drop down menu.
After doing that the quick documentation is shown as a floating window which you can position wherever you want. You could even place it on another screen if you have multiple screens. Again the content is still automatically updated as you move the mouse.
Select Open as a Popup from the Options drop down menu on the panel or the floating window (or press CTL/Q) to revert to using a popup for the quick documentation.
The best choice is a matter of personal taste, but both of those approaches would solve your overlapping popups problem.
Update:
The previous screen shots were produced using IDEA Ultimate 2018.1 EAP. With Ultimate 2017.3 it seems that the situation is slightly different. After clicking the Options icon, only a control to adjust the font is shown. In that case click the Pin icon in the top right of the window:
After doing that click the Options icon in the top right of the window to see the menu options:

XAML AppBarButton Hover Colors

I'm developing a Universal Windows App in VS2015 (C#, XAML).
I have an AppBarButton on a RelativePanel, The panel's background is black.
When I move the mouse over the button (Hover), it turns black with a darkgray background, which is not visible on a dark background:
Please tell me how to change the colors for the button in all mouse states: hover, mousedown,...etc.
Thank you
You need to create custom style template for button to overwrite the hover effect and behaviour.
Please open the button in Blend by using Edit A copy and then edit its template! you might need to remove some element.
Mostly it shall be a button as the property of changing color is exhibited by a button control

how to align text center in nsMenuItem Cocoa Mac osx

I am new in MAC OS X development, I have to align text centre in nsMenuItem but I not find any particular solution. I checked on google but not find any tutorial.
Find some tutorial but not exactly same, in these tutorial we take a NSView in nsMenuItem and then Insert subview in NSVIEW to accomplish it centre align.
Is there is any better solution? Please provide me link if possible.
Edit : I attached screen shot, but this is not working for me.
Thanks
You can set the Attributed String of the menu item, which does allow you to center the text, as well as change the font, color and size of the text as well.
I do not know which version of Xcode/OSX you are using, but under Xcode 5.0.2 you can use the built-in interface builder to edit the attributed strings of menu items.
Click the MainMenu.xib entry, then click the menu you want to edit to open it, then click the menu entry. On the right side of the window there should be some options, if not click the right most square in the group of 3 at the top right of the Xcode window 1.
Once you have the right panel open click the Attributes Inspector icon [2] (4th from the left, looks like a slider type icon). At the bottom of the list of attributes you will see an entry for "Attrib. Title" [3].
That is where you can set a custom font, color and alignment for your menu item.
If you need more control then that provides, you can also embed custom NSViews into your menus which gives you complete control over how the menu will look.

Custom Size for Docking a control button on a Windows Form

I have a button docked in a Windows Form TabControl. I want it to be docked to the bottom right corner while keeping my defined size. The default docking styles are Left, Right, Top, Bottom or Fill.
How can I set the button to be a custom size, while keeping it docked to the bottom right corner?
You need to take a look at the Anchor Property instead of Dock.