icons

How to add icons to MFC ribbon buttons

喜夏-厌秋 提交于 2020-01-01 19:30:54
问题 I created with Visual C++ 2010 a MFC application with ribbon. I have added buttons to this ribbon, but I do not know how to add images to these buttons. I tried editing writelarge.bmp file from the project, and setting the index of image on these buttons, but now the ribbon icons looks very ugly. Is there an easy way to add icons to ribbon images, other than editing writelarge.bmp file from the project? 回答1: You have the possibility to use only one file for each RibbonCategory. Create your

OS X Dock API? Retrieve OS X active application's icon with badges and other modifications

帅比萌擦擦* 提交于 2020-01-01 18:43:17
问题 Is there an API for retrieving the icons of the currently open apps on Mac OS X? I am trying to retrieve all the icons of the active applications along with any badges on top of the application (i.e. number of new messages in mail, or current download rate in Transmission). Is there some sort of Dock API? The only mention of an OSX API for retrieving information about currently active applications I have been able to find is the Process Manager API, which does not mention the ability to poll

ActionBar spinner with an icon (like Google Maps), how can I achieve that?

本小妞迷上赌 提交于 2020-01-01 18:16:08
问题 I am currently trying, in addition of the amazing ActionBerSherlock library to add a spinner navigation menu in my application (like Google Maps) Note: I have been thinking also about the SPotify/Evernote/Facebook pattern, but that seems inappropriate on Android: http://alexanderblom.se/2012/04/23/android-navigation-and-spotify/ I have already worked on the spinner (http://developer.android.com/design/building-blocks/spinners.html), but adding an icon seems not so easy Thank a lot for any

How to get an icon associated with specific Account from AccountManager.getAccounts()

让人想犯罪 __ 提交于 2020-01-01 08:35:22
问题 There is an icon displayed in account settings for each account. For Google account there is one icon, for Facebook another. Is there a way of getting this icon from the code in application? 回答1: Finally, I solved it: private Drawable getIconForAccount(Account account, AccountManager manager) { AuthenticatorDescription[] descriptions = manager.getAuthenticatorTypes(); PackageManager pm = getContext().getPackageManager(); for (AuthenticatorDescription description: descriptions) { if

Is there a command line utility to change the embedded Icon of a win32 exe? [duplicate]

南笙酒味 提交于 2020-01-01 08:32:40
问题 This question already has answers here : Add icon to existing EXE file from the command line (5 answers) Closed 8 months ago . ...id like something I could integrate into my build process: is there anything "standard" tool that does this? 回答1: Have you seen Resource Hacker? You can also drive it via the command line (script) so I'm sure it could be incorporated into your build. 回答2: I am pretty sure Resource Hacker can do this, and some other things, I believe i recognize its icon from when i

leaflet.js api icons: why do iconAnchor and popupAnchor have different coordinate locations

▼魔方 西西 提交于 2020-01-01 05:03:46
问题 If I configure leaflet icons in the following way, the popup is anchored at the upper left of the the icon. iconUrl: 'images/Flaticon_10030-16px.png', iconAnchor: [0,0], popupAnchor: [0,0] Also, with this setting, I'm not sure that the icon anchor is located at the latlng location. I'm presuming that the coordinates are accepted as x,y, although nowhere have I found that stated. I would prefer to KNOW something rather than HOW to accomplish something. Where within the icon's coordinate system

leaflet.js api icons: why do iconAnchor and popupAnchor have different coordinate locations

百般思念 提交于 2020-01-01 05:03:42
问题 If I configure leaflet icons in the following way, the popup is anchored at the upper left of the the icon. iconUrl: 'images/Flaticon_10030-16px.png', iconAnchor: [0,0], popupAnchor: [0,0] Also, with this setting, I'm not sure that the icon anchor is located at the latlng location. I'm presuming that the coordinates are accepted as x,y, although nowhere have I found that stated. I would prefer to KNOW something rather than HOW to accomplish something. Where within the icon's coordinate system

Taskbar ugly icon in WPF application

a 夏天 提交于 2020-01-01 04:33:08
问题 The icon in the taskbar is looking very ugly in my WPF application. The designer sent me some PNGs like: 32x32, 64x64, 96x96, 128x128, 192x192, 256x256, 512x512. What do I have to do to get the goodloking taskbar icon? Thank you! 回答1: Make an .ico file containing multiple sizes. At a minimum, you should have the following sizes: 16x16, 32x32, 48x48, and 256x256 according to the Windows icon visual guidelines. Having a single .ico file will help Windows pick the best size and scale it

Modifying taskbar icon of my .jar program

佐手、 提交于 2020-01-01 04:17:55
问题 I'm trying to change the default java icon that appears in taskbar everytime I run my .jar program. I managed to change it with frame.setIconImage(img); but this makes icon way too small, I want it to be as big as other programs icons and have a high quality. Any way I can do that? Thanks. 回答1: As you only supplied a single icon, Windows will then scale that icon to whatever size it needs displaying it in the taskbar (could be 16x16, 32x32 or other sizes, depending on the desktop them and

classloader.getresources() 介绍

早过忘川 提交于 2020-01-01 04:00:57
转载自: https://www.cnblogs.com/bhlsheji/p/4095699.html ◆普通情况下 , 我们都使用相对路径来获取资源 , 这种灵活性比較大 . 比方当前类为com/bbebfe/Test.class 而图像资源比方sample.gif应该放置在com/bbebfe/sample.gif 而假设这些图像资源放置在icons文件夹下,则应该是com/bbebfe/icons/sample.gif 通过当前类文件的路径获取资源主要有例如以下几种方式: · 如果当前类为com.bbebfe.Test · 包所在的目录为bin String imageName = "icons/sample.gif" 1, 通过Class.getResource()定位类路径下的资源(bin/com/bbebfe/icons/sample.gif) Class clazz = this.getClass(); URL url = clazz.getResource(imageName); 2, 通过ClassLoader.getResource()定位包的根文件夹下的资源(bin/icons/sample.gif) Class clazz = this.getClass(); URLClassLoader loader = (URLClassLoader)clazz