icons

How do I use standard Windows warning/error icons in my WPF app?

烈酒焚心 提交于 2019-12-17 18:05:27
问题 I'm making a custom error dialog in my WPF app and I want to use a standard windows error icon. Can I get the OS-specific icon from WPF? If not, does anyone know where to get .pngs with transparency of them? Or know where in Windows to go extract them from? So far my searches have turned up nothing. 回答1: There is a SystemIcons class, but it need adjustment for WPF needs (i.e. converting Icon to ImageSource ). 回答2: About using Standard Microsoft Icons. The vast majority of developers out there

How to change cursor icon in Java?

孤人 提交于 2019-12-17 18:05:13
问题 I would like to change the cursor icon to my customized 32x32 image when a Java application is executing. I looked and searched, those I found are just setting cursor on a JComponent. But I want the cursor changed to my specified icon wherever it goes moving, browsing, and click, as long as the Java application is still running, or you can say program runtime. Thanks alot. 回答1: Standard cursor image: setCursor(Cursor.getDefaultCursor()); User defined Image: Toolkit toolkit = Toolkit

Use Orca to edit msi from command line?

纵饮孤独 提交于 2019-12-17 17:42:24
问题 I'm using Visual Studio 2008 and have created a setup project for my application. The application has a high-resolution icon (for Vista). There's a bug in Visual Studio, and the installer creates a desktop shortcut with a low resolution icon. I logged this bug in Microsoft Connect (https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=338258) and finally got an answer, which is to use Orca to edit the msi file and replace the icon. That solutions works fine. Now I

Use Orca to edit msi from command line?

丶灬走出姿态 提交于 2019-12-17 17:42:06
问题 I'm using Visual Studio 2008 and have created a setup project for my application. The application has a high-resolution icon (for Vista). There's a bug in Visual Studio, and the installer creates a desktop shortcut with a low resolution icon. I logged this bug in Microsoft Connect (https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=338258) and finally got an answer, which is to use Orca to edit the msi file and replace the icon. That solutions works fine. Now I

iPhone Icon@2x.png not showing in Retina display

▼魔方 西西 提交于 2019-12-17 17:26:58
问题 For some reason, the iPhone 4 refuses to display my high resolution icon file. I've checked out these solutions, none of which have worked for me: How to setup normal Icon for iPhone3 and Retina for iPhone 4 http://developer.apple.com/library/ios/#qa/qa2010/qa1686.html http://appworks.radeeccles.com/programming/cfbundleiconfiles-nice-ready-prime-time/ The icons are in my resources group, and are all named correctly: Icon.png Icon@2x.png Icon-72.png I've also tried adding them to the Info

ListView with ArrayAdapter and ViewHolder adding icons to the wrong item

有些话、适合烂在心里 提交于 2019-12-17 16:30:55
问题 I have a dynamic ListView which uses an ArrayAdapter . When a name is selected from a spinner, the name together with an icon showing whether they are male or female gets added to the ListView . Mostly everything is good (the name gets added to the list correctly, together with an icon). But the icon showing the sex gets added to the wrong item in the ListView . The name gets added to the bottom of the list, but the icon gets placed at the name at the top of the list. I don't know if it's the

Put search icon near textbox using bootstrap

妖精的绣舞 提交于 2019-12-17 15:22:42
问题 I am using bootstrap by default textbox taking full width of column and I want to put search icon at the end to textbox. My code is like this: <div class="container"> <div class="row"> <div class="form-group col-lg-4"> <label class="control-label">Name</label> <input id="txtName" class="form-control input-sm" /> <span class="glyphicon glyphicon-search"></span> </div> <div class="col-lg-4"></div> <div class="col-lg-4"></div> </div> </div> I don't want to use input group. Please suggest an

Put search icon near textbox using bootstrap

試著忘記壹切 提交于 2019-12-17 15:18:16
问题 I am using bootstrap by default textbox taking full width of column and I want to put search icon at the end to textbox. My code is like this: <div class="container"> <div class="row"> <div class="form-group col-lg-4"> <label class="control-label">Name</label> <input id="txtName" class="form-control input-sm" /> <span class="glyphicon glyphicon-search"></span> </div> <div class="col-lg-4"></div> <div class="col-lg-4"></div> </div> </div> I don't want to use input group. Please suggest an

How can I save HICON to an .ico file?

坚强是说给别人听的谎言 提交于 2019-12-17 12:56:50
问题 I am extracting an icon from .exe/.dll and want to save it in an .ico file. What is the best way to do this? I have tried to use ::OleCreatePictureIndirect() and then IPicture->SaveAsFile() . It works but transparent parts of the icon are painted black (and obviously are not transparent any more :( ). I tried manual parsing. It works OK but is cumbersome and I am afraid of complications with Vista icons/.icl files/etc. Please, help. Thanks. 回答1: You can save HICON s with the IPicture:

Can you send a signal to Windows Explorer to make it refresh the systray icons?

跟風遠走 提交于 2019-12-17 10:42:43
问题 This problem has been afflicting me for quite a while and it's been really annoying. Every time I login after a reboot/power cycle the explorer takes some time to show up. I've taken the step of waiting for all the services to boot up and then I login, but it doesn't make any difference. The result is always the same: Some of the icons do not show up even if the applications have started. I've dug a bit on the code that makes one application "stick" an icon in there, but is there an API call