icons

How do I set window titlebar icon and alt-tab icon in SDL2 / C++ / Visual Studio 2012 express program?

不羁岁月 提交于 2019-12-10 17:36:55
问题 I have added a .rc file to my project with just the following: IDI_MAIN_ICON ICON "..\\..\\icon_artwork\\windows_icons\\project.ico" The .ico file contains icons at 16x16, 32x32, 48x48 and 256x256 resolutions. I see the icon in the taskbar and explorer (so there is no doubt the .ico is successfully embedded in the .exe), but I see the default Windows 7 application icon in the application's own title bar, and in alt-tab. Is there a way to get the OS to see the embedded icon by itself in all

WPF Button icon gets mirrored, why?

二次信任 提交于 2019-12-10 16:53:46
问题 This Button looks fine (see screenshot) when defining the image as done below. Note that the shield shaped icon with the letter 'T' is visualized correctly. <Button Command="w:MainWindow.BrowseTorrentSite"> <StackPanel> <Image Source="../icons/kickasstorrent.png" /> </StackPanel> </Button> When I want to rely on the buttons enabled state, the icon gets mirrored. <StackPanel Orientation="Horizontal" FlowDirection="RightToLeft"> <Button x:Name="KatButton" Command="w:MainWindow.BrowseTorrentSite

How to add multiple icons in jquery mobile collapsible list

不问归期 提交于 2019-12-10 16:47:11
问题 I would like to add an another icon near by the plus icon of the jquery mobile collapsible list. But could not able to add it since jquery mobile creates that icon dynamically. Any suggestion would be greatly appreciated! 回答1: This is certainly a hack but you can wait for the page to initialize, then find the list-view widget and append the jQuery Mobile HTML for an icon to each list-item: //wait for a certain pseudo-page to initialize $(document).delegate('#home', 'pageinit', function () { /

WPF : why doesnt messagebox have icon on titlebar

微笑、不失礼 提交于 2019-12-10 16:18:26
问题 All I want is that my messagebox should show my application's icon (or any other icon) in its titlebar, but it doesnt, why not? 回答1: The MessageBox in WPF is simply a wrapper for the standard MessageBox in user32.dll, which is exactly the same function that Windows itself calls to display a dialog box. It's not going to look any different in your WPF applications than it does in any other app that relies on the Win32 API (including WinForms, MFC, etc.). Using Reflector, you can verify this by

How to get Qt icon (QIcon) given a file extension

橙三吉。 提交于 2019-12-10 15:29:37
问题 I am developing an application that needs to display icons associated with different file types . Eg for .doc extensions, i need it to be able to display the Microsoft Word icon . QUESTION: How can I somehow get a QIcon from the system using QT sdk Thanks. 回答1: Use the QtGui.QFileIconProvider class. 回答2: Since Qt5, use QMimeDatabase for that: QMimeDatabase mime_database; QIcon icon_for_filename(const QString &filename) { QIcon icon; QList<QMimeType> mime_types = mime_database

How do I create icon for my documents in OS X

╄→尐↘猪︶ㄣ 提交于 2019-12-10 14:23:03
问题 I have a document-based application. So I need an icon for my app as well as an icon for my documents. In Xcode/Images.xcassets there is an item called AppIcon which I can use for setting the icon of the app. But how do I make an icon for my documents? Here is what I have tried under TARGETS/Document Types and TARGETS/Exported UTIs I have tried different methods suggested on Internet but nothing works. The doc icon is always blank and empty as you can see below: 回答1: It turns out that if you

want different icons with different builds in C#

筅森魡賤 提交于 2019-12-10 13:49:15
问题 We have a product but we are doing some rebranding so we need to be able to build and maintain two versions. I used resource files combined with some #if stuff to solve the strings, images, and whatever else, but the program icon is giving me trouble. I couldn't figure it out from msdn or a google search. Thanks! 回答1: Are you referring to the application icon? You can edit your project file manually and put in code similar to the following: <PropertyGroup> <ApplicationIcon Condition=" '$

C#: Using .ico file with multiple images

与世无争的帅哥 提交于 2019-12-10 13:16:54
问题 I'm trying to set the images in a TreeView in C#, from a .ico file containing two icons: a 32x32 version and a 16x16 version. The images are setting, but .Net is choosing the 32x32 version, and scaling it down (which looks terrible) instead of choosing the readily available 16x16 image. The relevant code: ilTree.Images.Add(Properties.Resources.group); ilTree.Images.Add(Properties.Resources.single); ilTree.Images.Add(Properties.Resources.db); treeStored.ImageList = ilTree; Where am I going

Custom desktop icon with inno setup

天大地大妈咪最大 提交于 2019-12-10 12:56:52
问题 I have the following in my inno setup file which creates a desktop icon no problem: Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}" However, the main file that launches the program is a VBS file rather than an EXE. I'd like to have a nice icon on the shortcut rather than the VBScript one, but can't find an option to change the icon. Is there such an option available to set a custom icon?? 回答1: The Inno-Setup help about the [Icons] section

Android Notification Dynamic Icon

南笙酒味 提交于 2019-12-10 12:35:48
问题 Is it possible to overlay a notification icon with some text/int? or is it possible to generate a custom icon on the fly? For example I have the current icon displayed for my notification, I would like to be able to display for example the number 2 within the red box. As this is not a count of notifications ( so not the red bubble ), the setting the "number" in the notification will not work. Will I have to just create an individual icon for every possible number I wish to display? Or is