icons

Java/JavaFX: Set Swing Icon for JavaFX label

天涯浪子 提交于 2019-12-23 13:14:15
问题 I'm trying to read a thumbnail (icon; 32x32px) from a file (.ico/.exe) and set it to a JavaFX label. My first try: public Icon getLargeIcon(String exeFile) { if (exeFile != null) { File file = new File(exeFile); try { ShellFolder sf = ShellFolder.getShellFolder(file); return new ImageIcon(sf.getIcon(true), sf.getFolderType()); } catch (FileNotFoundException e) { e.printStackTrace(); } } return null; } After that I'm doing this: Icon largeIcon = getLargeIcon(file.getAbsolutePath()); ImageIcon

Button image too far from top of button; too close to bottom of button

旧城冷巷雨未停 提交于 2019-12-23 10:39:38
问题 I'm working on a Windows Form in VB.NET 2005 and I would like to have some buttons with images (I'm talking about the plain, vanilla System.Windows.Forms.Button). I have everything set up the way I want it but the images are displaying too low on the button, such that the bottom of the icon is almost right on the bottom of the button and there is a lot of space above the image. Here is a screenshot: Button Screenshot http://www.freeimagehosting.net/uploads/b28a5c63b8.jpg See how the corner of

Button image too far from top of button; too close to bottom of button

痴心易碎 提交于 2019-12-23 10:39:25
问题 I'm working on a Windows Form in VB.NET 2005 and I would like to have some buttons with images (I'm talking about the plain, vanilla System.Windows.Forms.Button). I have everything set up the way I want it but the images are displaying too low on the button, such that the bottom of the icon is almost right on the bottom of the button and there is a lot of space above the image. Here is a screenshot: Button Screenshot http://www.freeimagehosting.net/uploads/b28a5c63b8.jpg See how the corner of

Using an icon on a dialog box window C++ Win32 API

倾然丶 夕夏残阳落幕 提交于 2019-12-23 09:57:02
问题 I am trying to create a dialog box with an icon at the top like so. I am using a resource file to load the icon like so. IDI_ICON1 ICON ".\\usb.ico" I have tried setting the window icon using the following code. SendMessage(hwnd, WM_SETICON, ICON_SMALL, (LPARAM)IDI_ICON1); SendMessage(hwnd, WM_SETICON, ICON_BIG, (LPARAM)IDI_ICON1); hwnd is the window. As a result, I get a blue circle that looks just like the loading icon for Windows 7 and Vista. I am almost positive the icon is being loaded

Icons don't work after publish

限于喜欢 提交于 2019-12-23 09:48:01
问题 I have a simple application. When you click a button, the tasbar icon changes. When I Run this app from visual studio, everything works fine, but when I publish the WPF app, the taskbar Icon does not work (there is none). The build action is set to "embedded resource/copy always", I have tested "Resource" as well but it doesn't work. var iconUri = new Uri("pack://application:,,,/images/internet_connection.ico", UriKind.RelativeOrAbsolute); this.Icon = BitmapFrame.Create(iconUri); the icon in

Unable to set System.Windows.Controls.MenuItem.Icon thru a setter

南楼画角 提交于 2019-12-23 09:31:09
问题 Hi I am trying to have a MenuItem.Icon set thru a style setter: <Style x:Key="MenuItem_Delete" TargetType="MenuItem" BasedOn="{StaticResource {x:Type MenuItem}}"> <Setter Property="Header" Value="_Delete"/> <Setter Property="MenuItem.Icon"> <Setter.Value> <Image Source="Resources/Delete.png"/> </Setter.Value> </Setter> </Style> I get the following exception at runtime: Cannot add content of type 'System.Windows.Controls.Image' to an object of type 'System.Object'. Error at object 'System

How to change JavaFx native Bundle exe icon

蓝咒 提交于 2019-12-23 09:09:44
问题 I am trying to chance the icon of the exe file created native bundling of javafx packaging but it still contains the default icon. Please suggest primaryStage.getIcons().add(FileUtility.loadImage("icon.png")); did not help, it only changes the title bar and task bar icon. The ico file still gets generated and icon of the exe files remains the default one I also tried to assign an icon in the project properties-> Deployment-> icon but did not help 回答1: I believe I have encountered the same

How can I change the icon of a Console App in Visual Studio?

人盡茶涼 提交于 2019-12-23 07:46:31
问题 I am working on C# Console App in VS 2008 and am unable to change the icon file. I changed the icon file in project --> properties --> application tab but still the old icon is displaying with the new build. Checked the below answer from a post to modify the .resx file. But my app has got only one .cs file and the .resx file is empty. Visual Studio, change app icon, how? 回答1: When you change the icon, does your project's Properties window look something like this? Make sure that you recompile

Tortiose SVN - Missing the setting to - Use “_svn” instead of “.svn”

≯℡__Kan透↙ 提交于 2019-12-23 07:08:30
问题 I just updated from SVN 1.6 to SVN 1.7. My Icon overlays aren't showing up. In looking at SVN's settings in 1.7, I no longer have the option to use "_svn" directories. This is likely why I'm having issues. Does anyone know how to make SVN 1.7 use _svn directories again? 回答1: This is what i found in the help of the new Version. As of version 1.4.0 and later, the TortoiseSVN installer doesn't provide the user with the option to set the SVN_ASP_DOT_NET_HACK environment variable anymore, since

What is the meaning of this decorated folder icon in Eclipse/CDT project explorer?

纵饮孤独 提交于 2019-12-23 07:05:03
问题 What does this special folder icon in CDT/Eclipse project explorer mean? The bluish thingy looks like a key or screw or some kind of tool. I guess it has something to do with CVS. I couldn't find the info in the Preferences > Appearance > Label Decorations settings. 回答1: The wrench icon over a folder or file means that it is overriding some of the build settings inherited from its parent. If it's there by accident, you most likely right-clicked that folder instead of the entire project and